[VOL-2694] Use package specific logger instance in all log statements
Change-Id: Icf1cb5ade42e42179aed7731b767af2f52481e3d
diff --git a/db/model/data_revision.go b/db/model/data_revision.go
index a0d5fc4..0861d76 100644
--- a/db/model/data_revision.go
+++ b/db/model/data_revision.go
@@ -24,7 +24,6 @@
"reflect"
"github.com/golang/protobuf/proto"
- "github.com/opencord/voltha-lib-go/v3/pkg/log"
)
// DataRevision stores the data associated to a revision along with its calculated checksum hash value
@@ -47,7 +46,7 @@
if IsProtoMessage(data) {
if pbdata, err := proto.Marshal(data.(proto.Message)); err != nil {
- log.Debugf("problem to marshal protobuf data --> err: %s", err.Error())
+ logger.Debugf("problem to marshal protobuf data --> err: %s", err.Error())
} else {
buffer.Write(pbdata)
// To ensure uniqueness in case data is nil, also include data type
@@ -57,7 +56,7 @@
} else if reflect.ValueOf(data).IsValid() {
dataObj := reflect.New(reflect.TypeOf(data).Elem())
if json, err := json.Marshal(dataObj.Interface()); err != nil {
- log.Debugf("problem to marshal data --> err: %s", err.Error())
+ logger.Debugf("problem to marshal data --> err: %s", err.Error())
} else {
buffer.Write(json)
}