Skip to content

Commit

Permalink
logging: serialize -> stringify (#1429)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus authored and callmehiphop committed Jul 13, 2016
1 parent 79e0e28 commit 14d5cb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/logging/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/logging/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 14d5cb0

Please sign in to comment.