Skip to content

Commit 81b0e2e

Browse files
authored
fix log printing in QUnit
1 parent 4e0c194 commit 81b0e2e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/server.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,11 @@ exports.Server = function Server(bsClient, workers, config, callback) {
349349
},
350350
'_log': function logHandler(uri, body, request, response) {
351351
var uuid = getWorkerUuid(request);
352-
var query = body;
352+
var query = null;
353+
try {
354+
query = CircularJSON.parse(body);
355+
} catch (e) {}
356+
353357
logger.trace('[%s] _log', ((uuid && workers[uuid]) || {}).id, query);
354358

355359
var logged = false;

0 commit comments

Comments
 (0)