[VOL-2310] Logging - Implement dynamic log levels in OpenOLT adapter
Working on Logging design changes.
Change-Id: I99a8ab22eb291332bf6528c8912fcbf16873232f
diff --git a/pkg/db/backend.go b/pkg/db/backend.go
index 96829c5..04fe35d 100644
--- a/pkg/db/backend.go
+++ b/pkg/db/backend.go
@@ -247,14 +247,14 @@
}
// CreateWatch starts watching events for the specified key
-func (b *Backend) CreateWatch(ctx context.Context, key string) chan *kvstore.Event {
+func (b *Backend) CreateWatch(ctx context.Context, key string, withPrefix bool) chan *kvstore.Event {
b.Lock()
defer b.Unlock()
formattedPath := b.makePath(key)
logger.Debugw("creating-key-watch", log.Fields{"key": key, "path": formattedPath})
- return b.Client.Watch(ctx, formattedPath)
+ return b.Client.Watch(ctx, formattedPath, withPrefix)
}
// DeleteWatch stops watching events for the specified key