From ab00ac8aa3c78adc0425d40735d628e8f0ce6178 Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Wed, 13 Jul 2016 14:50:27 -0400 Subject: [PATCH] logging: serialize -> stringify --- 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; };