[VOL-3375]Remove field pkg from log statements
Change-Id: I08531f85dcb0f9f8ff6c68862f607aa7587e4fe1
diff --git a/VERSION b/VERSION
index 437459c..9080d9c 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.5.0
+2.5.1-dev
diff --git a/cmd/openolt-adapter/common.go b/cmd/openolt-adapter/common.go
index 3dead9d..c12b743 100644
--- a/cmd/openolt-adapter/common.go
+++ b/cmd/openolt-adapter/common.go
@@ -26,7 +26,7 @@
func init() {
// Setup this package so that it's log level can be modified at run time
var err error
- logger, err = log.RegisterPackage(log.JSON, log.ErrorLevel, log.Fields{"pkg": "main"})
+ logger, err = log.RegisterPackage(log.JSON, log.ErrorLevel, log.Fields{})
if err != nil {
panic(err)
}
diff --git a/internal/pkg/core/common.go b/internal/pkg/core/common.go
index 4d46870..c1e7fbc 100644
--- a/internal/pkg/core/common.go
+++ b/internal/pkg/core/common.go
@@ -26,7 +26,7 @@
func init() {
// Setup this package so that it's log level can be modified at run time
var err error
- logger, err = log.RegisterPackage(log.JSON, log.ErrorLevel, log.Fields{"pkg": "core"})
+ logger, err = log.RegisterPackage(log.JSON, log.ErrorLevel, log.Fields{})
if err != nil {
panic(err)
}
diff --git a/internal/pkg/resourcemanager/common.go b/internal/pkg/resourcemanager/common.go
index 3703526..45fa180 100644
--- a/internal/pkg/resourcemanager/common.go
+++ b/internal/pkg/resourcemanager/common.go
@@ -26,7 +26,7 @@
func init() {
// Setup this package so that it's log level can be modified at run time
var err error
- logger, err = log.RegisterPackage(log.JSON, log.ErrorLevel, log.Fields{"pkg": "resourcemanager"})
+ logger, err = log.RegisterPackage(log.JSON, log.ErrorLevel, log.Fields{})
if err != nil {
panic(err)
}
diff --git a/pkg/mocks/common.go b/pkg/mocks/common.go
index 836770c..258987d 100644
--- a/pkg/mocks/common.go
+++ b/pkg/mocks/common.go
@@ -26,7 +26,7 @@
func init() {
// Setup this package so that it's log level can be modified at run time
var err error
- logger, err = log.RegisterPackage(log.JSON, log.ErrorLevel, log.Fields{"pkg": "mocks"})
+ logger, err = log.RegisterPackage(log.JSON, log.ErrorLevel, log.Fields{})
if err != nil {
panic(err)
}