-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve log levels #1098
improve log levels #1098
Conversation
Related: #874 |
@@ -40,7 +40,7 @@ pub async fn get_and_log_response( | |||
let response = get_reqwest_client()?.get(url).send().await?; | |||
let status = response.status(); | |||
let raw_body = response.text().await?; | |||
debug!("Received response, status: {status}, raw response body: {raw_body}"); | |||
trace!("Received response, status: {status}, raw response body: {raw_body}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps log the status only on debug? It is very helpful to understand if the chain service failed or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the response status a debug log and the raw body a trace log
241bdac
to
045fb56
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
045fb56
to
318ef7d
Compare
Logs currently contain unuseful sections like below, cluttering the logs.
This PR sets the default log level to
info
, and all sdk related loglevels todebug
.