-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop printing Protobuf message and its metadata in logs (#52)
Added `String()` method to `ProtoStoreMsg`, which will print out only ID, org. ID, instance ID, revision, and table name. --- Before: ``` Unable to locate record [record=&{Id:P4 Msg:[] ParentId: Revision:0 OrgId:Pepsi InstanceId:Americas CreatedAt:0001-01-01 00:00:00 +0000 UTC UpdatedAt:0001-01-01 00:00:00 +0000 UTC DeletedAt:{Time:0001-01-01 00:00:00 +0000 UTC Valid:false} XTableName:processor}, dbName=testprotostoreindbcrud] record not found ``` --- After: ``` Unable to locate record [record={"id":"P4","revision":0,"org_id":"Pepsi","instance_id":"Americas","x_table_name":"processor"}, dbName=testprotostoreindbcrud] record not found ``` This resolves issue #42
- Loading branch information
Showing
4 changed files
with
122 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.