Skip to content

Commit

Permalink
Merge pull request #2861 from CounterpartyXCP/severity
Browse files Browse the repository at this point in the history
Rename JSON Log Field to `severity`
  • Loading branch information
adamkrellenstein authored Dec 18, 2024
2 parents 0aa0fa0 + dd53457 commit 894d078
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion counterparty-core/counterpartycore/lib/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,14 @@ 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["levelName"] = record.levelname
extra["severity"] = record.levelname
if hasattr(record, "stack_info"):
extra["stack_info"] = record.stack_info
else:
Expand Down
1 change: 1 addition & 0 deletions release-notes/release-notes-v10.9.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
## CLI

- Add `--cache-dir` flag
- Add `severity` field to JSON logs for compatibility

# Credits

Expand Down

0 comments on commit 894d078

Please sign in to comment.