[VOL-2941] Upgrading to latest protos and lib
Change-Id: I2ce126c0fd78735ecd53a4c3b1e34f2de42cbdf3
diff --git a/internal/pkg/config/config.go b/internal/pkg/config/config.go
index 2277101..f2b2cdd 100644
--- a/internal/pkg/config/config.go
+++ b/internal/pkg/config/config.go
@@ -18,7 +18,7 @@
import (
"flag"
"fmt"
- "github.com/opencord/voltha-lib-go/v2/pkg/log"
+ "github.com/opencord/voltha-lib-go/v3/pkg/log"
"os"
)
@@ -34,7 +34,7 @@
default_KVStoreTimeout = 5 //in seconds
default_KVStoreHost = "127.0.0.1"
default_KVStorePort = 2379 // Consul = 8500; Etcd = 2379
- default_LogLevel = 0
+ default_LogLevel = "WARN"
default_Banner = false
default_Topic = "simulated_onu"
default_CoreTopic = "rwcore"
@@ -57,7 +57,7 @@
KVStorePort int
Topic string
CoreTopic string
- LogLevel int
+ LogLevel string
Banner bool
ProbeHost string
ProbePort int
@@ -127,7 +127,7 @@
flag.IntVar(&(so.KVStorePort), "kv_store_port", default_KVStorePort, help)
help = fmt.Sprintf("Log level")
- flag.IntVar(&(so.LogLevel), "log_level", default_LogLevel, help)
+ flag.StringVar(&(so.LogLevel), "log_level", default_LogLevel, help)
help = fmt.Sprintf("Show startup banner log lines")
flag.BoolVar(&so.Banner, "banner", default_Banner, help)