diff --git a/lib/logging/entry.js b/lib/logging/entry.js index d567613f993..f5bee9dbe15 100644 --- a/lib/logging/entry.js +++ b/lib/logging/entry.js @@ -161,7 +161,7 @@ Entry.prototype.toJSON = function() { if (is.object(this.data)) { entry.jsonPayload = GrpcService.objToStruct_(this.data, { - serialize: true + stringify: true }); } else if (is.string(this.data)) { entry.textPayload = this.data; diff --git a/test/logging/entry.js b/test/logging/entry.js index 0916992beee..7e5fbaa67cf 100644 --- a/test/logging/entry.js +++ b/test/logging/entry.js @@ -185,7 +185,7 @@ describe('Entry', function() { FakeGrpcService.objToStruct_ = function(obj, options) { assert.strictEqual(obj, input); assert.deepEqual(options, { - serialize: true + stringify: true }); return converted; };