mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-14 10:10:42 -07:00
Added in detail info when failing to load in a message for a consumer.
E.g. `Unexpected partial cache error looking up message for consumer '$G > TEST > dlc'` Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -3530,11 +3530,13 @@ func (o *consumer) loopAndGatherMsgs(qch chan struct{}) {
|
||||
if err == ErrStoreMsgNotFound || err == errDeletedMsg || err == ErrStoreEOF || err == errMaxAckPending {
|
||||
goto waitForMsgs
|
||||
} else if err == errPartialCache {
|
||||
s.Warnf("Unexpected partial cache error looking up message for consumer")
|
||||
s.Warnf("Unexpected partial cache error looking up message for consumer '%s > %s > %s'",
|
||||
o.mset.acc, o.mset.cfg.Name, o.cfg.Name)
|
||||
goto waitForMsgs
|
||||
|
||||
} else {
|
||||
s.Errorf("Received an error looking up message for consumer: %v", err)
|
||||
s.Errorf("Received an error looking up message for consumer '%s > %s > %s': %v",
|
||||
o.mset.acc, o.mset.cfg.Name, o.cfg.Name, err)
|
||||
goto waitForMsgs
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user