Ocpp: remove temporary debug messages (#19371)

This commit is contained in:
andig 2025-03-03 13:53:08 +01:00 • committed by GitHub
parent 62b33839b1
commit 22ae11618e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -147,8 +147,6 @@ func NewOCPP(ctx context.Context,
) (*OCPP, error) {
log := util.NewLogger(fmt.Sprintf("%s-%d", lo.CoalesceOrEmpty(id, "ocpp"), connector))
log.DEBUG.Printf("!! registering %s:%d", id, connector)
cp, err := ocpp.Instance().RegisterChargepoint(id,
func() *ocpp.CP {
return ocpp.NewChargePoint(log, id)
@ -171,8 +169,6 @@ func NewOCPP(ctx context.Context,
return nil, err
}
log.DEBUG.Printf("!! connected %s:%d", id, connector)
if cp.NumberOfConnectors > 0 && connector > cp.NumberOfConnectors {
return nil, fmt.Errorf("invalid connector: %d", connector)
}