File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,13 @@ - (void)_queueMessage:(NSDictionary *)message {
9898
9999- (void )_dispatchMessage : (NSDictionary *)message {
100100 NSString *messageJSON = [self _serializeMessage: message];
101- if (logging) { NSLog (@" WVJB: send %@ " , messageJSON); }
101+ if (logging) {
102+ if (messageJSON.length > 500 ) {
103+ NSLog (@" WVJB: send %@ " , [[messageJSON substringToIndex: 500 ] stringByAppendingString: @" [...]" ]);
104+ } else {
105+ NSLog (@" WVJB: send %@ " , messageJSON);
106+ }
107+ }
102108 messageJSON = [messageJSON stringByReplacingOccurrencesOfString: @" \\ " withString: @" \\\\ " ];
103109 messageJSON = [messageJSON stringByReplacingOccurrencesOfString: @" \" " withString: @" \\\" " ];
104110 messageJSON = [messageJSON stringByReplacingOccurrencesOfString: @" \' " withString: @" \\\' " ];
You can’t perform that action at this time.
0 commit comments