diff --git a/usecases/cs/lpc/usecase.go b/usecases/cs/lpc/usecase.go index 7053c19e..1228df92 100644 --- a/usecases/cs/lpc/usecase.go +++ b/usecases/cs/lpc/usecase.go @@ -123,7 +123,6 @@ func (e *LPC) approveOrDenyConsumptionLimit(msg *spineapi.Message, approve bool, // the implementation only considers write messages for this use case and // approves all others func (e *LPC) loadControlWriteCB(msg *spineapi.Message) { - logging.Log().Debug("LPC loadControlWriteCB") if msg.RequestHeader == nil || msg.RequestHeader.MsgCounter == nil || msg.Cmd.LoadControlLimitListData == nil { logging.Log().Debug("LPC loadControlWriteCB: invalid message") @@ -151,7 +150,6 @@ func (e *LPC) loadControlWriteCB(msg *spineapi.Message) { for _, item := range data.LoadControlLimitData { if item.LimitId == nil || limitId != *item.LimitId { - logging.Log().Debug("LPC loadControlWriteCB: no matching limit id") continue } diff --git a/usecases/cs/lpp/usecase.go b/usecases/cs/lpp/usecase.go index 47de65f0..bbdaf02b 100644 --- a/usecases/cs/lpp/usecase.go +++ b/usecases/cs/lpp/usecase.go @@ -8,6 +8,7 @@ import ( "github.com/enbility/eebus-go/features/server" ucapi "github.com/enbility/eebus-go/usecases/api" "github.com/enbility/eebus-go/usecases/usecase" + "github.com/enbility/ship-go/logging" spineapi "github.com/enbility/spine-go/api" "github.com/enbility/spine-go/model" "github.com/enbility/spine-go/spine" @@ -123,11 +124,13 @@ func (e *LPP) approveOrDenyProductionLimit(msg *spineapi.Message, approve bool, func (e *LPP) loadControlWriteCB(msg *spineapi.Message) { if msg.RequestHeader == nil || msg.RequestHeader.MsgCounter == nil || msg.Cmd.LoadControlLimitListData == nil { + logging.Log().Debug("LPC loadControlWriteCB: invalid message") return } _, limitId, err := e.loadControlServerAndLimitId() if err != nil { + logging.Log().Debug("LPC loadControlWriteCB: error getting limit id") return }