[FIXED] MQTT: panic in an error log (#4489)

### Changes proposed in this pull request:

Fixes a panic in error handling/logging
This commit is contained in:
Waldemar Quevedo
2023-09-05 15:32:58 -07:00
committed by GitHub

View File

@@ -2521,7 +2521,7 @@ func (as *mqttAccountSessionManager) transferRetainedToPerKeySubjectStream(log *
// We've ran out of messages to transfer so give up.
break
}
log.Warnf(" Unable to load retained message with sequence %d: %s", smsg.Sequence, err)
log.Warnf(" Unable to load retained message from '$MQTT.rmsgs': %s", err)
errors++
break
}