mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-08-26 19:11:15 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user