From 14d5cb0a721e97e3517ba228f4fc52e8f84b846f Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Wed, 13 Jul 2016 15:09:59 -0400 Subject: [PATCH] logging: serialize -> stringify (#1429) --- lib/logging/entry.js | 2 +- test/logging/entry.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; };