logs: use %o to format error
otherwise, they are printed as multi-line and this messes up tail+date formatting
This commit is contained in:
@@ -797,7 +797,7 @@ async function startExecWebSocket(req, res, next) {
|
||||
duplexStream.on('end', function () { ws.close(); });
|
||||
duplexStream.on('close', function () { ws.close(); });
|
||||
duplexStream.on('error', function (error) {
|
||||
debug('duplexStream error:', error);
|
||||
debug('duplexStream error: %o', error);
|
||||
});
|
||||
duplexStream.on('data', function (data) {
|
||||
if (ws.readyState !== WebSocket.OPEN) return;
|
||||
@@ -805,7 +805,7 @@ async function startExecWebSocket(req, res, next) {
|
||||
});
|
||||
|
||||
ws.on('error', function (error) {
|
||||
debug('websocket error:', error);
|
||||
debug('websocket error: %o', error);
|
||||
});
|
||||
ws.on('message', function (msg) {
|
||||
duplexStream.write(msg);
|
||||
|
||||
Reference in New Issue
Block a user