Skip to content

Commit 14d5cb0

Browse files
stephenpluspluscallmehiphop
authored andcommitted
logging: serialize -> stringify (#1429)
1 parent 79e0e28 commit 14d5cb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/logging/entry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Entry.prototype.toJSON = function() {
161161

162162
if (is.object(this.data)) {
163163
entry.jsonPayload = GrpcService.objToStruct_(this.data, {
164-
serialize: true
164+
stringify: true
165165
});
166166
} else if (is.string(this.data)) {
167167
entry.textPayload = this.data;

test/logging/entry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ describe('Entry', function() {
185185
FakeGrpcService.objToStruct_ = function(obj, options) {
186186
assert.strictEqual(obj, input);
187187
assert.deepEqual(options, {
188-
serialize: true
188+
stringify: true
189189
});
190190
return converted;
191191
};

0 commit comments

Comments
 (0)