mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat: add logging functionality in drainer (#495)
This commit is contained in:
@ -5,7 +5,7 @@ use redis_interface as redis;
|
||||
|
||||
use crate::{
|
||||
errors::{self, DrainerError},
|
||||
services,
|
||||
logger, services,
|
||||
};
|
||||
|
||||
pub type StreamEntries = Vec<(String, HashMap<String, String>)>;
|
||||
@ -20,7 +20,8 @@ pub async fn is_stream_available(stream_index: u8, store: Arc<services::Store>)
|
||||
.await
|
||||
{
|
||||
Ok(resp) => resp == redis::types::SetnxReply::KeySet,
|
||||
Err(_e) => {
|
||||
Err(error) => {
|
||||
logger::error!(?error);
|
||||
// Add metrics or logs
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user