reversed the order of soul and aura for logging
This commit is contained in:
parent
251d544cd4
commit
f2041b5f38
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -66,7 +66,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
|
||||||
message = "{}:{} {}".format(decoded_data[0]['args']['Aura'], decoded_data[0]['args']['Soul'], decoded_data[0]['args']['LogLine'])
|
message = "{}:{} {}".format(decoded_data[0]['args']['Soul'], decoded_data[0]['args']['Aura'], decoded_data[0]['args']['LogLine'])
|
||||||
log_message(os.getenv('CHANNEL_NAME'), message)
|
log_message(os.getenv('CHANNEL_NAME'), message)
|
||||||
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"), message if os.getenv('SHOW_AURA_AND_SOUL') != '0' else decoded_data[0]['args']['LogLine']))
|
print("[{}] {}".format(timestamp.strftime("%Y-%m-%d %H:%M:%S"), message if os.getenv('SHOW_AURA_AND_SOUL') != '0' else decoded_data[0]['args']['LogLine']))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue