diff --git a/counterparty-core/counterpartycore/lib/log.py b/counterparty-core/counterpartycore/lib/log.py index c2bc9d32c..15f1be83c 100644 --- a/counterparty-core/counterpartycore/lib/log.py +++ b/counterparty-core/counterpartycore/lib/log.py @@ -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: diff --git a/counterparty-core/counterpartycore/server.py b/counterparty-core/counterpartycore/server.py index 64501486a..968daa44e 100755 --- a/counterparty-core/counterpartycore/server.py +++ b/counterparty-core/counterpartycore/server.py @@ -733,7 +733,7 @@ def start_all(args): if ( not os.path.exists(config.DATABASE) and args.catch_up == "bootstrap" ) or args.catch_up == "bootstrap-always": - bootstrap(no_confirm=True, snapshot_url=args.bootstrap_url) + bootstrap.bootstrap(no_confirm=True, snapshot_url=args.bootstrap_url) # Initialise database db = database.initialise_db() diff --git a/release-notes/release-notes-v10.9.0.md b/release-notes/release-notes-v10.9.0.md index 41aa8c54e..9dc0a78e0 100644 --- a/release-notes/release-notes-v10.9.0.md +++ b/release-notes/release-notes-v10.9.0.md @@ -30,6 +30,7 @@ ## CLI - Add `--cache-dir` flag +- Add `severity` field to JSON logs for compatibility # Credits