From 472a0eee4c12c892fd6dbd19218e1c9ee1fd6c80 Mon Sep 17 00:00:00 2001 From: Adam Krellenstein Date: Tue, 17 Dec 2024 15:23:20 -0500 Subject: [PATCH] Release Notes for Severity --- counterparty-core/counterpartycore/lib/log.py | 1 + release-notes/release-notes-v10.9.0.md | 1 + 2 files changed, 2 insertions(+) diff --git a/counterparty-core/counterpartycore/lib/log.py b/counterparty-core/counterpartycore/lib/log.py index fa7f26891..15f1be83c 100644 --- a/counterparty-core/counterpartycore/lib/log.py +++ b/counterparty-core/counterpartycore/lib/log.py @@ -142,6 +142,7 @@ def json_record(self, message: str, extra: dict, record: logging.LogRecord) -> d 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 diff --git a/release-notes/release-notes-v10.9.0.md b/release-notes/release-notes-v10.9.0.md index e6d995cbd..3095123cc 100644 --- a/release-notes/release-notes-v10.9.0.md +++ b/release-notes/release-notes-v10.9.0.md @@ -28,6 +28,7 @@ ## CLI - Add `--cache-dir` flag +- Add `severity` field to JSON logs for compatibility # Credits