mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-12 09:50:47 +01:00
Set log level debug
This commit is contained in:
parent
5c8bfb7cea
commit
f30995707a
@ -12,6 +12,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
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 {
|
if err := os.Setenv("NB_LOG_MAX_SIZE_MB", "100"); err != nil {
|
||||||
log.Errorf("Failed setting log-size: %v", err)
|
log.Errorf("Failed setting log-size: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user