From 3efa7a282adbd048d9d88e58d79da6ba8a3b98f7 Mon Sep 17 00:00:00 2001 From: Viktor Liu Date: Wed, 27 Nov 2024 13:45:20 +0100 Subject: [PATCH] Set log level debug --- client/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/main.go b/client/main.go index fcc160e70..292afeebe 100644 --- a/client/main.go +++ b/client/main.go @@ -12,6 +12,12 @@ import ( ) func main() { + // only if env is not set + if os.Getenv("NB_LOG_LEVEL") == "" { + if err := os.Setenv("NB_LOG_LEVEL", "debug"); err != nil { + log.Errorf("Failed setting log-level: %v", err) + } + } if err := os.Setenv("NB_LOG_MAX_SIZE_MB", "100"); err != nil { log.Errorf("Failed setting log-size: %v", err) }