Skip to content

Commit 69f0072

Browse files
committed
Set a sane depth so this returns in finite time
1 parent 8adb8cb commit 69f0072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/DebugApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ DebugApi.prototype.getClientState = function(server, user) {
2626
if (!client) {
2727
return "User " + user + " does not have a client on " + server.domain;
2828
}
29-
return require("util").inspect(client, {colors:true, depth:null});
29+
return require("util").inspect(client, {colors:true, depth:7});
3030
};
3131

3232
DebugApi.prototype.killUser = function(userId, reason) {

0 commit comments

Comments
 (0)