From 02abf1d349b3377a7d38a1899f655a303468a091 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 23 Aug 2024 18:29:39 -0400 Subject: [PATCH] fixed channel name reference --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index bcdf4c6..d02530c 100644 --- a/main.py +++ b/main.py @@ -60,7 +60,7 @@ def output_line(log): block_cache[block_number] = web3.eth.get_block(block_number) # log the message and output to console - log_message("VOID", decoded_data[0]['args']['LogLine']) + log_message(os.getenv('CHANNEL_NAME'), decoded_data[0]['args']['LogLine']) timestamp = datetime.fromtimestamp(block_cache[block_number]['timestamp'], tz=timezone.utc) print("[{}] {}".format(timestamp.strftime("%Y-%m-%d %H:%M:%S"), decoded_data[0]['args']['LogLine']))