chore: libwaku - allow to properly set the log level in libwaku and unify a little (#2708)

* waku.nimble: set properly chronicles compilation flags for static libwaku
* adapt examples to new log setup
This commit is contained in:
Ivan FB
2024-05-17 16:28:54 +02:00
committed by GitHub
parent e7b0777d25
commit 3faffdbcaa
15 changed files with 48 additions and 34 deletions
@@ -11,16 +11,7 @@ logScope:
when isMainModule:
## Logging setup
# Adhere to NO_COLOR initiative: https://no-color.org/
let color =
try:
not parseBool(os.getEnv("NO_COLOR", "false"))
except CatchableError:
true
logging.setupLogLevel(logging.LogLevel.INFO)
logging.setupLogFormat(logging.LogFormat.TEXT, color)
setupLog(logging.LogLevel.NOTICE, logging.LogFormat.TEXT)
info "Starting Waku Stealth Commitment Protocol"
info "Starting Waku Node"