From fae5f5bfd67b10406d1fb6768456b0e7c5e87bfe Mon Sep 17 00:00:00 2001 From: Cyber MacGeddon Date: Wed, 30 Jul 2025 23:37:07 +0100 Subject: [PATCH] Fix loggin startup problems --- trustgraph-base/trustgraph/base/pubsub.py | 7 +++---- trustgraph-flow/trustgraph/processing/processing.py | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/trustgraph-base/trustgraph/base/pubsub.py b/trustgraph-base/trustgraph/base/pubsub.py index b9f233d4..90b65d5b 100644 --- a/trustgraph-base/trustgraph/base/pubsub.py +++ b/trustgraph-base/trustgraph/base/pubsub.py @@ -73,8 +73,7 @@ class PulsarClient: parser.add_argument( '-l', '--log-level', - type=LogLevel, - default=LogLevel.INFO, - choices=list(LogLevel), - help=f'Output queue (default: info)' + default='INFO', + choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], + help=f'Log level (default: INFO)' ) diff --git a/trustgraph-flow/trustgraph/processing/processing.py b/trustgraph-flow/trustgraph/processing/processing.py index 8ee62cdd..f74c9387 100644 --- a/trustgraph-flow/trustgraph/processing/processing.py +++ b/trustgraph-flow/trustgraph/processing/processing.py @@ -147,10 +147,9 @@ def run(): parser.add_argument( '-l', '--log-level', - type=LogLevel, - default=LogLevel.INFO, - choices=list(LogLevel), - help=f'Output queue (default: info)' + default='INFO', + choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], + help=f'Log level (default: INFO)' ) parser.add_argument(