[VOL-2537] Logging - Implement dynamic log levels in voltha-core
Change-Id: If8e1bee7629d58119b3e08b53a24719020495e28
diff --git a/rw_core/main.go b/rw_core/main.go
index e8a7ea6..3068c98 100644
--- a/rw_core/main.go
+++ b/rw_core/main.go
@@ -29,6 +29,7 @@
"github.com/opencord/voltha-go/rw_core/config"
c "github.com/opencord/voltha-go/rw_core/core"
"github.com/opencord/voltha-go/rw_core/utils"
+ conf "github.com/opencord/voltha-lib-go/v3/pkg/config"
"github.com/opencord/voltha-lib-go/v3/pkg/db/kvstore"
"github.com/opencord/voltha-lib-go/v3/pkg/kafka"
"github.com/opencord/voltha-lib-go/v3/pkg/log"
@@ -113,6 +114,8 @@
rw.config.KVStoreTimeout); err != nil {
log.Fatal(err)
}
+ cm := conf.NewConfigManager(rw.kvClient, rw.config.KVStoreType, rw.config.KVStoreHost, rw.config.KVStorePort, rw.config.KVStoreTimeout)
+ go conf.ProcessLogConfigChange(cm, ctx)
// Setup KV transaction context
if err := c.SetTransactionContext(instanceID,