Skip to content

Commit

Permalink
add debug print for params
Browse files Browse the repository at this point in the history
  • Loading branch information
dshiell committed Aug 9, 2024
1 parent ac1c9ae commit 6d764af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use crate::rpc_cache_handler::RpcCacheHandler;

use lazy_static::lazy_static;
use prometheus::{register_counter, Counter, Encoder, TextEncoder};
use tracing::debug;

mod args;
mod cache;
Expand Down Expand Up @@ -148,6 +149,7 @@ async fn rpc_call(
};

// get the cache key from the handler based on the request params
debug!("params: {:?}", params);
let params_key = match handler.extract_cache_key(&params) {
Ok(Some(params_key)) => params_key,
Ok(None) => push_uncached_request_and_continue!(),
Expand Down

0 comments on commit 6d764af

Please sign in to comment.