-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(logger): log some objects at higher depth #5984
## Problem Deeply nested objects fail to show up in the logger due to use of `%O` instead of `JSON.stringify`. Some customers use this information for debugging or other purposes. Ex. ``` 2024-11-12 13:23:39.682 [info] request from tab: tab-1 conversationID: 619df9a2-3ab2-4676-9896-9eb608d80582 request: { conversationState: { currentMessage: { userInputMessage: [Object] }, chatTriggerType: 'MANUAL', customizationArn: undefined } } ``` ## Solution - Change codewhisper chat request/response log messages (which are very deeply nested) back to `JSON.stringify`.
- Loading branch information
1 parent
b173d6c
commit b753e82
Showing
4 changed files
with
55 additions
and
7 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
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