Skip to content

Commit 5b369e3

Browse files
committed
Fix logging to include the KeyID for which no configuration exists
1 parent dc13778 commit 5b369e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

usecases/cs/lpc/usecase.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func (e *LPC) deviceConfigurationWriteCB(msg *spineapi.Message) {
230230
for _, deviceKeyValueData := range data.DeviceConfigurationKeyValueData {
231231
description, err := dc.GetKeyValueDescriptionFoKeyId(*deviceKeyValueData.KeyId)
232232
if description == nil || err != nil {
233-
logging.Log().Debug("LPC deviceConfigurationWriteCB: no device configuration for KeyID %d found")
233+
logging.Log().Debug("LPC deviceConfigurationWriteCB: no device configuration for KeyID found: ", *deviceKeyValueData.KeyId)
234234
continue
235235
}
236236

usecases/cs/lpp/usecase.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func (e *LPP) deviceConfigurationWriteCB(msg *spineapi.Message) {
230230
for _, deviceKeyValueData := range data.DeviceConfigurationKeyValueData {
231231
description, err := dc.GetKeyValueDescriptionFoKeyId(*deviceKeyValueData.KeyId)
232232
if description == nil || err != nil {
233-
logging.Log().Debug("LPP deviceConfigurationWriteCB: no device configuration for KeyID %d found")
233+
logging.Log().Debug("LPP deviceConfigurationWriteCB: no device configuration for KeyID found: ", *deviceKeyValueData.KeyId)
234234
continue
235235
}
236236

0 commit comments

Comments
 (0)