Skip to content

Commit

Permalink
Merge pull request #2231 from karthik2804/improve_redis_trigger_warn
Browse files Browse the repository at this point in the history
Warn instead of trace when errors happen in the spin_redis_engine
  • Loading branch information
karthik2804 authored Jan 18, 2024
2 parents be88d81 + 061cdeb commit c25b685
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/redis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ impl TriggerExecutor for RedisTrigger {
let mut stream = pubsub.on_message();
loop {
match stream.next().await {
Some(msg) => drop(self.handle(msg).await),
Some(msg) => {
if let Err(err) = self.handle(msg).await {
tracing::warn!("Error handling message: {err}");
}
}
None => {
tracing::trace!("Empty message");
if !client.check_connection() {
Expand Down

0 comments on commit c25b685

Please sign in to comment.