nodejitsu/jitsu — Issue #163: Disable large JSON stack traces or make configurable
Author: AvianFlu
Created: 2012-02-16 21:06:36+00:00
State: open

This strikes me as more than a user really needs - I think the stack trace at the bottom is enough for a CLI tool.

```json
{
"process": {
"pid": 3573,
"uid": 1000,
"gid": 1000,
"cwd": "/home/avian/dev/newjitsu",
"execPath": "/usr/local/bin/node",
"version": "v0.6.10",
"argv": [
"node",
"/usr/local/bin/jitsu",
"env",
"set",
"turtlerocket",
"TEST",
"TESTKEY"
],
"memoryUsage": {
"rss": 26673152,
"heapTotal": 26593280,
"heapUsed": 7842944
}
},
"os": {
"loadavg": [
0.17236328125,
0.15869140625,
0.16552734375
],
"uptime": 3949.40269245
},
"trace": [
{
"column": null,
"file": null,
"function": "String.CALL_NON_FUNCTION",
"line": null,
"method": "CALL_NON_FUNCTION",
"native": true
},
{
"column": 20,
"file": "/home/avian/dev/newjitsu/lib/jitsu/commands/env.js",
"function": null,
"line": 192,
"method": null,
"native": false
},
{
"column": 14,
"file": "/home/avian/dev/newjitsu/node_modules/nodejitsu-api/lib/client/client.js",
"function": "Request._callback",
"line": 96,
"method": "_callback",
"native": false
},
{
"column": 22,
"file": "/home/avian/dev/newjitsu/node_modules/request/main.js",
"function": "Request.callback",
"line": 109,
"method": "callback",
"native": false
},
{
"column": 18,
"file": "/home/avian/dev/newjitsu/node_modules/request/main.js",
"function": "",
"line": 481,
"method": null,
"native": false
},
{
"column": 17,
"file": "events.js",
"function": "Request.emit",
"line": 67,
"method": "emit",
"native": false
},
{
"column": 16,
"file": "/home/avian/dev/newjitsu/node_modules/request/main.js",
"function": "",
"line": 442,
"method": null,
"native": false
},
{
"column": 20,
"file": "events.js",
"function": "IncomingMessage.emit",
"line": 88,
"method": "emit",
"native": false
},
{
"column": 23,
"file": "http.js",
"function": "HTTPParser.onMessageComplete",
"line": 137,
"method": "onMessageComplete",
"native": false
},
{
"column": 24,
"file": "http.js",
"function": "Socket.ondata",
"line": 1147,
"method": "ondata",
"native": false
}
],
"stack": [
"TypeError: string is not a function",
" at String.CALL_NON_FUNCTION (native)",
" at /home/avian/dev/newjitsu/lib/jitsu/commands/env.js:192:20",
" at Request._callback (/home/avian/dev/newjitsu/node_modules/nodejitsu-api/lib/client/client.js:96:14)",
" at Request.callback (/home/avian/dev/newjitsu/node_modules/request/main.js:109:22)",
" at Request. (/home/avian/dev/newjitsu/node_modules/request/main.js:481:18)",
" at Request.emit (events.js:67:17)",
" at IncomingMessage. (/home/avian/dev/newjitsu/node_modules/request/main.js:442:16)",
" at IncomingMessage.emit (events.js:88:20)",
" at HTTPParser.onMessageComplete (http.js:137:23)",
" at Socket.ondata (http.js:1147:24)"
],
"level": "error",
"message": "uncaughtException"
}
```