Skip to content

Commit 7261473

Browse files
committed
Add debug logging to cs-lpc/lpp
1 parent 9c6940a commit 7261473

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

usecases/cs/lpc/events.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ func (e *LPC) deviceConnected(payload spineapi.EventPayload) {
9191
deviceDiagEntites = append(deviceDiagEntites, entity)
9292
}
9393

94+
logging.Log().Debug("cs-lpc:", len(deviceDiagEntites), "DeviceDiagnosis Server found")
95+
9496
// the remote device does not have a DeviceDiagnosis Server, which it should
9597
if len(deviceDiagEntites) == 0 {
9698
return

usecases/cs/lpp/events.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ func (e *LPP) deviceConnected(payload spineapi.EventPayload) {
9191
deviceDiagEntites = append(deviceDiagEntites, entity)
9292
}
9393

94+
logging.Log().Debug("cs-lpp:", len(deviceDiagEntites), "DeviceDiagnosis Server found")
95+
9496
// the remote device does not have a DeviceDiagnosis Server, which it should
9597
if len(deviceDiagEntites) == 0 {
9698
return

0 commit comments

Comments
 (0)