Skip to content

Commit

Permalink
fix: revert mining_node default logging config (#3262)
Browse files Browse the repository at this point in the history
Description
---
The mining_node relies on its stdout logging for output for the binary and a recent global update to the logging filtered out the debug and info messages to the std out.

This PR updates the default logging config for the mining node so that debug and info messages are logged to stdout.

How Has This Been Tested?
---
Manually
  • Loading branch information
philipr-za committed Aug 30, 2021
1 parent 3502b39 commit edc1a2b
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions common/logging/log4rs_sample_mining_node.yml
Expand Up @@ -14,10 +14,6 @@ appenders:
kind: console
encoder:
pattern: "{d(%Y-%m-%d %H:%M:%S.%f)} [{t}] {h({l}):5} {m}{n}"
filters:
-
kind: threshold
level: warn
# An appender named "base_layer" that writes to a file with a custom pattern encoder
mining_node:
kind: rolling_file
Expand All @@ -37,9 +33,22 @@ appenders:

# Set the default logging level to "warn" and attach the "stdout" appender to the root
root:
level: info
level: warn
appenders:
- stdout
- mining_node

loggers:
# mining_node
tari::application:
level: debug
appenders:
- mining_node
additive: false
tari_mining_node:
level: debug
appenders:
- mining_node
- stdout
additive: false


0 comments on commit edc1a2b

Please sign in to comment.