Skip to content

Commit

Permalink
Increase log level
Browse files Browse the repository at this point in the history
Currently all requests/responses are logged on Info level.
  • Loading branch information
naglis committed Oct 12, 2024
1 parent 01da37a commit a37c42b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fn flow_run(
timings: &mut CallTimings,
) -> Result<FlowResult, Error> {
let uri = flow.uri().clone();
info!("{} {:?}", flow.method(), &DebugUri(flow.uri()));
debug!("{} {:?}", flow.method(), &DebugUri(flow.uri()));

if config.https_only && uri.scheme() != Some(&Scheme::HTTPS) {
return Err(Error::RequireHttpsOnly(uri.to_string()));
Expand All @@ -120,7 +120,7 @@ fn flow_run(

let mut flow = flow.proceed();

if log_enabled!(log::Level::Info) {
if log_enabled!(log::Level::Debug) {
let headers = flow.headers_map()?;

let r = DebugRequest {
Expand All @@ -129,7 +129,7 @@ fn flow_run(
version: flow.version(),
headers,
};
info!("{:?}", r);
debug!("{:?}", r);
}

let flow = match send_request(flow, &mut connection, timings)? {
Expand All @@ -143,7 +143,7 @@ fn flow_run(

let (response, response_result) = recv_response(flow, &mut connection, config, timings)?;

info!("{:?}", DebugResponse(&response));
debug!("{:?}", DebugResponse(&response));

let ret = match response_result {
RecvResponseResult::RecvBody(flow) => {
Expand Down

0 comments on commit a37c42b

Please sign in to comment.