Skip to content

Commit

Permalink
logging: serialize -> stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Jul 13, 2016
1 parent 79e0e28 commit ab00ac8
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 ab00ac8

Please sign in to comment.