@@ -242,7 +242,7 @@ use crate::{
242242// -----------------------------------------------------------------------------
243243//
244244// The max length of a message to show in the console.
245- const MAX_MESSAGE_LENGTH : usize = 3000 ;
245+ const MAX_MESSAGE_LENGTH : usize = 500 ;
246246
247247lazy_static ! {
248248 /// A regex to determine the type of the first EOL. See 'PROCESSINGS\`.
@@ -893,17 +893,14 @@ impl TranslationTask {
893893 } ;
894894 // Send a diff if possible.
895895 let client_contents = if self . sent_full {
896- let diff = self . diff_code_mirror (
896+ self . diff_code_mirror (
897897 ccfw. metadata . clone ( ) ,
898898 self . version ,
899899 ccfw. version ,
900900 code_mirror_translated,
901- ) ;
902- debug ! ( "Sending diff update:\n {:#?}\n \n " , diff) ;
903- diff
901+ )
904902 } else {
905903 self . sent_full = true ;
906- debug ! ( "Sending full update:\n {:#?}\n \n " , ccfw) ;
907904 ccfw. clone ( )
908905 } ;
909906 queue_send_func ! ( self . to_client_tx. send( EditorMessage {
@@ -1103,7 +1100,7 @@ impl TranslationTask {
11031100 cfw_version,
11041101 & code_mirror_translated,
11051102 ) ;
1106- debug ! ( "Sending re-translation update id = {} back to the Client: \n {client_contents:#?} \n " , self . id) ;
1103+ debug ! ( "Sending re-translation update id = {} back to the Client. " , self . id) ;
11071104 queue_send_func ! ( self . to_client_tx. send( EditorMessage {
11081105 id: self . id,
11091106 message: EditorMessageContents :: Update (
@@ -1129,10 +1126,6 @@ impl TranslationTask {
11291126 // Correct EOL endings for use with the IDE.
11301127 let new_source_code_eol = eol_convert ( new_source_code, & self . eol ) ;
11311128 let ccfw = if self . sent_full && self . allow_source_diffs {
1132- debug ! (
1133- "Sending diff.\n Before:\n {:#?}\n \n After:\n {:#?}\n \n " ,
1134- self . source_code, new_source_code_eol
1135- ) ;
11361129 Some ( CodeChatForWeb {
11371130 metadata : cfw. metadata ,
11381131 source : CodeMirrorDiffable :: Diff ( CodeMirrorDiff {
@@ -1169,7 +1162,7 @@ impl TranslationTask {
11691162 }
11701163 } ,
11711164 } ;
1172- debug ! ( "Sending update id = {}; full contents: \n {:#?} " , client_message. id, codechat_for_web ) ;
1165+ debug ! ( "Sending update id = {}" , client_message. id) ;
11731166 queue_send_func ! ( self . to_ide_tx. send( EditorMessage {
11741167 id: client_message. id,
11751168 message: EditorMessageContents :: Update ( UpdateMessageContents {
0 commit comments