Skip to content

Commit a741a08

Browse files
committed
Add missing change for prev PR
1 parent cd3e59d commit a741a08

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

usecases/cs/lpp/usecase.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ func (e *LPP) approveOrDenyProductionLimit(msg *spineapi.Message, approve bool,
124124
func (e *LPP) loadControlWriteCB(msg *spineapi.Message) {
125125
if msg.RequestHeader == nil || msg.RequestHeader.MsgCounter == nil ||
126126
msg.Cmd.LoadControlLimitListData == nil {
127-
logging.Log().Debug("LPC loadControlWriteCB: invalid message")
127+
logging.Log().Debug("LPP loadControlWriteCB: invalid message")
128128
return
129129
}
130130

131131
_, limitId, err := e.loadControlServerAndLimitId()
132132
if err != nil {
133-
logging.Log().Debug("LPC loadControlWriteCB: error getting limit id")
133+
logging.Log().Debug("LPP loadControlWriteCB: error getting limit id")
134134
return
135135
}
136136

@@ -139,6 +139,7 @@ func (e *LPP) loadControlWriteCB(msg *spineapi.Message) {
139139
// we assume there is always only one limit
140140
if data == nil || data.LoadControlLimitData == nil ||
141141
len(data.LoadControlLimitData) == 0 {
142+
logging.Log().Debug("LPP loadControlWriteCB: no data")
142143
return
143144
}
144145

0 commit comments

Comments
 (0)