Skip to content

Commit

Permalink
feat(logging): always log exceptions by default (#3574)
Browse files Browse the repository at this point in the history
  • Loading branch information
jderrien authored and provinzkraut committed Jun 21, 2024
1 parent 20c0062 commit 7de5a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litestar/logging/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class LoggingConfig(BaseLoggingConfig):
"""
configure_root_logger: bool = field(default=True)
"""Should the root logger be configured, defaults to True for ease of configuration."""
log_exceptions: Literal["always", "debug", "never"] = field(default="debug")
log_exceptions: Literal["always", "debug", "never"] = field(default="always")
"""Should exceptions be logged, defaults to log exceptions when 'app.debug == True'"""
traceback_line_limit: int = field(default=-1)
"""Max number of lines to print for exception traceback.
Expand Down Expand Up @@ -471,7 +471,7 @@ class StructLoggingConfig(BaseLoggingConfig):
"""Logger factory to use."""
cache_logger_on_first_use: bool = field(default=True)
"""Whether to cache the logger configuration and reuse."""
log_exceptions: Literal["always", "debug", "never"] = field(default="debug")
log_exceptions: Literal["always", "debug", "never"] = field(default="always")
"""Should exceptions be logged, defaults to log exceptions when 'app.debug == True'"""
traceback_line_limit: int = field(default=-1)
"""Max number of lines to print for exception traceback.
Expand Down

0 comments on commit 7de5a82

Please sign in to comment.