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:
Girish Ramakrishnan
2023-04-16 10:49:59 +02:00
parent e6f870b220
commit c4f4f3e914
29 changed files with 70 additions and 73 deletions

View File

@@ -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);