-
Notifications
You must be signed in to change notification settings - Fork 182
Open
Description
Chamber writes log messages to stdout, which means they get intermingled with output that you might want to parse programmatically.
E.g.
[root@967ceb326552 dir-name]# chamber export -f json chamber-of-secrets
2023/06/03 09:39:34 WARN: failed to get session token, falling back to IMDSv1: 404 Not Found: Not Found
status code: 404, request id:
caused by: EC2MetadataError: failed to make EC2Metadata request
404 page not found
status code: 404, request id:
{"super_secret_password":"password"}
My workaround for now is to look for the first line that can be parsed as JSON. But... that's not ideal. :)
My hope is that I could either send all logs to stderr, disable them entirely, or set the minimum log level that will be printed.
Metadata
Metadata
Assignees
Labels
No labels