Skip to content

Commit

Permalink
Reduce RPC response error logging level
Browse files Browse the repository at this point in the history
These can happen pretty often for missing mempool txids and do not
warrant warn-level logging. Unexpected RPC errors will bubble up and
be handled appropriately.
  • Loading branch information
shesek committed Aug 13, 2024
1 parent ec9c021 commit 584e9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ impl Connection {
Ok(if status == "HTTP/1.1 200 OK" {
contents
} else if status == "HTTP/1.1 500 Internal Server Error" {
warn!("HTTP status: {}", status);
debug!("RPC HTTP 500 error: {}", contents);
contents // the contents should have a JSONRPC error field
} else {
bail!(
Expand Down

0 comments on commit 584e9d1

Please sign in to comment.