Adding missing device-id to several warning and error logs
Change-Id: Ia1e084d079b5c7f8369596077a062ebcef03a090
diff --git a/internal/pkg/avcfg/omci_vlan_config.go b/internal/pkg/avcfg/omci_vlan_config.go
index dd066b7..109ff30 100755
--- a/internal/pkg/avcfg/omci_vlan_config.go
+++ b/internal/pkg/avcfg/omci_vlan_config.go
@@ -1977,7 +1977,8 @@
case omci.CreateResponseType:
{ // had to shift that to a method to cope with StaticCodeAnalysis restrictions :-(
if err := oFsm.handleOmciCreateResponseMessage(ctx, msg.OmciPacket); err != nil {
- logger.Warnw(ctx, "CreateResponse handling aborted", log.Fields{"err": err})
+ logger.Warnw(ctx, "CreateResponse handling aborted",
+ log.Fields{"device-id": oFsm.deviceID, "err": err})
return
}
} //CreateResponseType
@@ -2028,7 +2029,8 @@
case omci.DeleteResponseType:
{ // had to shift that to a method to cope with StaticCodeAnalysis restrictions :-(
if err := oFsm.handleOmciDeleteResponseMessage(ctx, msg.OmciPacket); err != nil {
- logger.Warnw(ctx, "DeleteResponse handling aborted", log.Fields{"err": err})
+ logger.Warnw(ctx, "DeleteResponse handling aborted",
+ log.Fields{"device-id": oFsm.deviceID, "err": err})
return
}
} //DeleteResponseType