We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9e0f7d commit ed9c91bCopy full SHA for ed9c91b
lib/bunyan-stackdriver.js
@@ -93,7 +93,7 @@ BunyanStackDriver.prototype._write = function write(record, encoding, callback)
93
record = destroyCircular(record);
94
strictJSON(record);
95
96
- if (record.err) {
+ if (record.err && record.err.stack) {
97
record.message = record.err.stack;
98
} else if (!record.message) {
99
record.message = record.msg;
0 commit comments