Skip to content

Commit 051a2e2

Browse files
committedFeb 3, 2017
Set record.message to ensure msg is shown in the Stackdriver UI
1 parent 388f4c5 commit 051a2e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎lib/bunyan-stackdriver.js

+4
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ BunyanStackDriver.prototype._write = function write(record, encoding, callback)
9393
record = destroyCircular(record);
9494
strictJSON(record);
9595

96+
if (!record.message) {
97+
record.message = record.msg;
98+
}
99+
96100
var metadata = {
97101
resource: this.resource,
98102
timestamp: timestamp,

0 commit comments

Comments
 (0)
Failed to load comments.