Skip to content
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

Obey db scoped console logging when evaluating whether to log #6553

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

torcolvin
Copy link
Collaborator

The guts of this fix are to pass context in LogInfoEnabled, LogDebugEnabled, LogTraceEnabled.

I don't believe this affects capella since it only hits if db scoped logging is a broader level than bootstrap console logging.

In the case of capella, the logging is:

  • bootstrap file, default (info)
  • database (info)

So the only potential caller of this statement does not apply in handler.go

Pre-review checklist

  • Removed debug logging (fmt.Print, log.Print, ...)
  • Logging sensitive data? Make sure it's tagged (e.g. base.UD(docID), base.MD(dbName))
  • Updated relevant information in the API specifications (such as endpoint descriptions, schemas, ...) in docs/api

@torcolvin torcolvin merged commit acc14a3 into master Oct 25, 2023
13 checks passed
@torcolvin torcolvin deleted the respect-db-ctx-for-logging branch October 25, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants