reduce publish logging to trace level

Each log line is pushed to the logs exchange so this is _way_ to verbose
to enable by default.
This commit is contained in:
Daiderd Jordan 2020-05-03 14:57:21 +02:00
parent c65ec0af76
commit 5be617c912
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -21,7 +21,7 @@ use lapin::types::{AMQPValue, FieldTable};
use lapin::{
BasicProperties, Channel, CloseOnDrop, Connection, ConnectionProperties, ExchangeKind,
};
use tracing::debug;
use tracing::{debug, trace};
pub fn from_config(cfg: &RabbitMQConfig) -> Result<CloseOnDrop<Connection>, lapin::Error> {
let mut props = FieldTable::default();
@ -196,7 +196,7 @@ async fn action_deliver(
Action::Publish(mut msg) => {
let exch = msg.exchange.take().unwrap_or_else(|| "".to_owned());
let key = msg.routing_key.take().unwrap_or_else(|| "".to_owned());
debug!(?exch, ?key, "action publish");
trace!(?exch, ?key, "action publish");
let mut props = BasicProperties::default().with_delivery_mode(2); // persistent.