[VOL-2694] Use package specific logger instance in all log statements
Change-Id: Icf1cb5ade42e42179aed7731b767af2f52481e3d
diff --git a/db/model/root.go b/db/model/root.go
index 3ae5614..c3b932e 100644
--- a/db/model/root.go
+++ b/db/model/root.go
@@ -106,7 +106,7 @@
r.DeleteTxBranch(txid)
} else {
if _, err = r.node.MergeBranch(ctx, txid, false); err != nil {
- log.Errorw("Unable to integrate the contents of a transaction branch within the latest branch of a given node", log.Fields{"error": err})
+ logger.Errorw("Unable to integrate the contents of a transaction branch within the latest branch of a given node", log.Fields{"error": err})
}
r.node.GetRoot().ExecuteCallbacks(ctx)
r.DeleteTxBranch(txid)
@@ -272,9 +272,9 @@
if blob, err := json.Marshal(data); err != nil {
// TODO report error
} else {
- log.Debugf("Changing root to : %s", string(blob))
+ logger.Debugf("Changing root to : %s", string(blob))
if err := r.KvStore.Put(ctx, "root", blob); err != nil {
- log.Errorf("failed to properly put value in kvstore - err: %s", err.Error())
+ logger.Errorf("failed to properly put value in kvstore - err: %s", err.Error())
}
}
}