New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CBG-3286 Per-db console log settings #6348
Conversation
fb23d92
to
85a4f82
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approach seems reasonable - added a question about whether background context makes sense in some cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Rest API documentation needs updating (docs/api/components/schemas.yaml L1129
)
CBG-0000
Stores a reference to the database log configuration inside the database-scoped log context, so that we're able to look it up when we log to determine whether to emit the console log or not.
This allows databases to define their own console log level and log keys. Neither of the two settings takes precedence. They're additive (either node OR db log level/key are checked when writing a log line, if either match, it will be logged).
Integration Tests
GSI=true,xattrs=true
https://jenkins.sgwdev.com/job/SyncGateway-Integration/000/