Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
update netdata log level env var (#1428)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 authored Nov 22, 2023
1 parent d8ecb75 commit 25f8d1c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cmd/godplugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import (
)

var (
cd, _ = os.Getwd()
name = "go.d"
userDir = os.Getenv("NETDATA_USER_CONFIG_DIR")
stockDir = os.Getenv("NETDATA_STOCK_CONFIG_DIR")
varLibDir = os.Getenv("NETDATA_LIB_DIR")
lockDir = os.Getenv("NETDATA_LOCK_DIR")
watchPath = os.Getenv("NETDATA_PLUGINS_GOD_WATCH_PATH")
envLogLevelLevel = os.Getenv("NETDATA_LOG_SEVERITY_LEVEL")
cd, _ = os.Getwd()
name = "go.d"
userDir = os.Getenv("NETDATA_USER_CONFIG_DIR")
stockDir = os.Getenv("NETDATA_STOCK_CONFIG_DIR")
varLibDir = os.Getenv("NETDATA_LIB_DIR")
lockDir = os.Getenv("NETDATA_LOCK_DIR")
watchPath = os.Getenv("NETDATA_PLUGINS_GOD_WATCH_PATH")
envLogLevel = os.Getenv("NETDATA_LOG_LEVEL")

version = "unknown"
)
Expand Down Expand Up @@ -98,8 +98,8 @@ func main() {
return
}

if envLogLevelLevel != "" {
logger.Level.SetByName(envLogLevelLevel)
if envLogLevel != "" {
logger.Level.SetByName(envLogLevel)
}

if opts.Debug {
Expand Down

0 comments on commit 25f8d1c

Please sign in to comment.