Skip to content

Commit

Permalink
Rename JSON Log Field to severity
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkrellenstein committed Dec 17, 2024
1 parent 0180b29 commit 56cc3ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion counterparty-core/counterpartycore/lib/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ class CustomisedJSONFormatter(JSONFormatter):
def json_record(self, message: str, extra: dict, record: logging.LogRecord) -> dict:
extra["filename"] = record.filename
extra["funcName"] = record.funcName
extra["levelname"] = record.levelname
extra["lineno"] = record.lineno
extra["module"] = record.module
extra["name"] = record.name
extra["pathname"] = record.pathname
extra["process"] = record.process
extra["processName"] = record.processName
extra["severity"] = record.levelname
if hasattr(record, "stack_info"):
extra["stack_info"] = record.stack_info
else:
Expand Down

0 comments on commit 56cc3ac

Please sign in to comment.