fixed channel name reference

This commit is contained in:
Alexander 2024-08-23 18:29:39 -04:00
parent 5046c0ade0
commit 02abf1d349

View file

@ -60,7 +60,7 @@ def output_line(log):
block_cache[block_number] = web3.eth.get_block(block_number) block_cache[block_number] = web3.eth.get_block(block_number)
# log the message and output to console # 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) 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'])) print("[{}] {}".format(timestamp.strftime("%Y-%m-%d %H:%M:%S"), decoded_data[0]['args']['LogLine']))