Lines Matching full:log
15 var log = new Duktape.Logger('Proxy'); // default logger variable
16 //log.l = 0; // enable debug and trace logging
41 log.debug('Preventing extensions on global object');
42 log.debug('Global is extensible:', Object.isExtensible(global));
44 log.debug('Global is extensible:', Object.isExtensible(global));
78 log.debug('Read callback:', buf.length, err);
88 log.debug('Read', res.length, 'bytes from', filename);
92 log.debug('Resize file read buffer:', data.length, '->', data.length * 2);
123 log.error('JSON proxy onConnection error:', err);
126 log.info('JSON proxy client connected'); // XXX: it'd be nice to log remote peer host:port
134 log.info('Connecting to debug target at', targetHost + ':' + targetPort);
139 log.info('Single connection mode, stop listening for more connections');
151 log.info('Proxy connection finished (single connection mode: we should be exiting now)');
153 log.info('Proxy connection finished (persistent mode: wait for more connections)');
183 log.info('JsonConnHandler already disconnected, ignore finish()');
186 log.info('JsonConnHandler finished:', msg);
191 log.info('Failed to write _Disconnecting notify, ignoring:', e);
209 …log.trace('Received data from JSON socket, err:', err, 'data length:', data ? data.length : 'null'…
232 log.debug('Resize incoming JSON buffer to ' + this.incoming.length);
249 log.warn('JSON message dispatch failed (lenient mode, ignoring):', e);
251 log.warn('JSON message dispatch failed (dropping connection):', e);
262 log.info('PROXY --> CLIENT:', JSON.stringify(msg));
349 log.warn('JSON parse failed (lenient mode, ignoring):', e);
351 log.warn('JSON parse failed (dropping connection):', e);
368 log.info('PROXY <-- CLIENT:', JSON.stringify(msg));
405 log.info('Unknown command name: ' + name + ', command number: ' + val);
593 log.info('TargetConnHandler already disconnected, ignore finish()');
596 log.info('TargetConnHandler finished:', msg);
615 log.warn(errmsg);
627 log.info('Connected to debug target at', targetHost + ':' + targetPort);
634 log.info('PROXY --> TARGET:', Duktape.enc('jx', plain));
646 …log.trace('Received data from target socket, err:', err, 'data length:', data ? data.length : 'nul…
670 log.debug('Resize incoming binary buffer to ' + this.incoming.length);
687 log.trace('Got dvalue:', Duktape.enc('jx', res.dvalue));
697 log.warn('JSON message handling failed (lenient mode, ignoring):', e);
699 log.warn('JSON message handling failed (dropping connection):', e);
707 log.info('Target disconnected');
745 log.info('Target handshake: ' + JSON.stringify(this.handshake));
767 log.info('PROXY <-- TARGET:', Duktape.enc('jx', _this.incoming.subarray(0, n)));
956 …print(' --log-level LEVEL Set log level, default is 2; 0=trace, 1=debug, 2=info, 3=warn, et…
994 } else if (argv[i] == '--log-level') {
995 log.l = Math.floor(+argv[i + 1]);
1005 … log.info('Listening for incoming JSON debug connection on ' + serverHost + ':' + serverPort +
1010 log.info('Read proxy metadata from', metadataFile);
1013 log.error('Failed to load metadata:', err);
1019 log.error('Failed to parse JSON metadata from ' + metadataFile + ': ' + e);