Merge pull request #1190 from adenchen123/master
Reapply "Handling redis timeout in RedisSubscriber"
This commit is contained in:
commit
9520aa0747
|
|
@ -81,6 +81,10 @@ public class RedisSubscriber : IEventSubscriber
|
||||||
await HandleGroupMessage(db, channel, group, consumer, received, $"{channel}-Error");
|
await HandleGroupMessage(db, channel, group, consumer, received, $"{channel}-Error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (RedisTimeoutException)
|
||||||
|
{
|
||||||
|
_logger.LogWarning($"Redis timeout for channel {channel}, will retry in next cycle");
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError($"Error processing message: {ex.Message}\r\n{ex}");
|
_logger.LogError($"Error processing message: {ex.Message}\r\n{ex}");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue