Skip to content

Commit

Permalink
Info->Debug for some AMQP outcomes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Dec 16, 2024
1 parent 3999afc commit 6e02254
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/amqp10/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,17 +303,17 @@ func (p *Amqp10Publisher) handleSent(receipt *amqp.SendReceipt, published time.T
case *amqp.StateModified:
// message must be modified and resent before it can be processed.
// the values in stateType provide further context.
log.Info("server requires modifications to accept this message", "state", stateType)
log.Debug("server requires modifications to accept this message", "state", stateType)
case *amqp.StateReceived:
// see the fields in [StateReceived] for information on
// how to handle this delivery state.
log.Info("message received but not processed by the broker", "state", stateType)
log.Debug("message received but not processed by the broker", "state", stateType)
case *amqp.StateRejected:
if stateType.Error != nil {
log.Info("message rejected by the broker", "state", stateType.Error)
}
case *amqp.StateReleased:
log.Info("message released the broker", "state", stateType)
log.Debug("message released the broker", "state", stateType)
}
log.Debug("message receipt received", "outcome", state)
}
Expand Down

0 comments on commit 6e02254

Please sign in to comment.