Skip to content

Commit

Permalink
ref: Various logging improvements for sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Apr 7, 2021
1 parent a9d3107 commit 1f53281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions backend/atlas/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ def traces_sampler(sampling_context):
CeleryIntegration(),
DjangoIntegration(),
RedisIntegration(),
LoggingIntegration(
level=logging.INFO, # Capture info and above as breadcrumbs
event_level=logging.ERROR, # Send errors as events
),
LoggingIntegration(level=logging.INFO, event_level=logging.WARN),
],
release=os.environ.get("BUILD_REVISION") or None,
environment=(
Expand Down
2 changes: 1 addition & 1 deletion backend/atlas/utils/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def coerce_enum(value, enum, default=None):
return default
if not hasattr(enum, value):
logger.warning(
"google-update.invalid-enum", extra={"enum": enum.__name__, "value": value}
"google-update.invalid-enum enum={} value={}".format(enum.__name__, value)
)
return default
return value
Expand Down

0 comments on commit 1f53281

Please sign in to comment.