reduce log level on requests that will not be retried
@@ -83,7 +83,7 @@ where
);
if !RETRY_STATUSES.contains(&status) {
- log::error!(
+ log::debug!(
"server returned error status which will not be retried: {}",
status
);
@@ -111,8 +111,9 @@ where
);
error
} else {
- log::error!("non-io error occurred which will not be retried: {}", error);
- return Err(error);
+ return Err(
+ error.context("non-io error occurred which will not be retried")
+ );
}
}
};
