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

Configure logger and force "DEBUG" level in debug mode #1119

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

provinzkraut
Copy link
Member

Implement the proposal made in #976 (comment).

  1. Configure a starlite logger in debug mode if no LoggingConfig was given, and logging_config was not explicitly set to None
  2. Set the level of the starlite logger to DEBUG when in debug mode

This generally makes the use of debug more intuitive, especially in combination with #976: Setting debug=True will the result in exceptions being logged without having to specify any additional configuration.

PR Checklist

  • Have you followed the guidelines in CONTRIBUTING.md?
  • Have you got 100% test coverage on new code?
  • Have you updated the prose documentation?
  • Have you updated the reference documentation?

@provinzkraut provinzkraut requested a review from a team January 31, 2023 13:47
@sonarcloud
Copy link

sonarcloud bot commented Jan 31, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@provinzkraut provinzkraut merged commit 10bdf77 into main Jan 31, 2023
@provinzkraut provinzkraut deleted the debug-logging-config branch January 31, 2023 14:33
@provinzkraut provinzkraut mentioned this pull request Apr 10, 2023
4 tasks
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