Skip to content

Commit

Permalink
✨ Enable pretty-printed exceptions for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
TeoZosa committed Oct 28, 2021
1 parent 26b599d commit e966fc8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion structlog_sentry_logger/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ def set_structlog_config(timestamper: structlog.processors.TimeStamper) -> None:
structlog_processors = [
timestamper,
structlog.processors.StackInfoRenderer(),
structlog.processors.format_exc_info,
add_severity_field_from_level_if_in_cloud_environment,
]
stdlib_log_compatibility_processors = [
Expand Down
1 change: 0 additions & 1 deletion tests/structlog_sentry_logger/test__config.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ def test_sentry_DSN_integration(caplog: LogCaptureFixture) -> None:
if isinstance(log, dict): # structlog logger
assert log["level"] == "error" == record.levelname.lower()
assert log["sentry"] == "sent"
assert err_msg in log["exception"]
assert "sentry_id" in log
elif isinstance(log, str):
# other stdlib-based logger initialized BEFORE our structlog logger;
Expand Down

0 comments on commit e966fc8

Please sign in to comment.