Logging improvement for VGC-APPLICATION
Change-Id: I35c10b43917d5f962484f05c3fb9d9aad67e63f5
diff --git a/internal/pkg/application/timer.go b/internal/pkg/application/timer.go
index 167f8ae..42b16d8 100644
--- a/internal/pkg/application/timer.go
+++ b/internal/pkg/application/timer.go
@@ -18,6 +18,7 @@
import (
"context"
"time"
+ "voltha-go-controller/log"
)
// TimerType - type of timer used
@@ -42,6 +43,7 @@
// Start to start timer
func (va *VoltApplication) Start(cntx context.Context, cfg TimerCfg, timerType TimerType) {
+ logger.Infow(ctx, " Timer Starts", log.Fields{"Duration ": cfg})
if timerMap[timerType] {
logger.Warn(ctx, "Duplicate Timer!!! Timer already running")
return