Skip to content

Commit

Permalink
fix: include levelname in CW logs from python code
Browse files Browse the repository at this point in the history
RHINENG-8336
  • Loading branch information
jdobes committed Jun 6, 2024
1 parent e26ae1e commit a881b68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def setup_cw_logging(main_logger):
log_group=CFG.cw_aws_log_group,
stream_name=CFG.hostname,
)
handler.formatter.add_log_record_attrs = ["levelname"]
except ClientError:
logger.exception("Unable to enable CloudWatch logging: ")
else: # pragma: no cover
Expand Down

0 comments on commit a881b68

Please sign in to comment.