log params too
i'm not sure we want this, but maybe
This commit is contained in:
parent
cb69a2d132
commit
e01f8505fd
@ -279,14 +279,14 @@ impl OpenRequestHandle {
|
|||||||
RequestErrorHandler::DebugLevel => {
|
RequestErrorHandler::DebugLevel => {
|
||||||
// TODO: think about this revert check more. sometimes we might want reverts logged so this needs a flag
|
// TODO: think about this revert check more. sometimes we might want reverts logged so this needs a flag
|
||||||
if !is_revert {
|
if !is_revert {
|
||||||
debug!(?err, %method, rpc=%self.conn, "bad response!");
|
debug!(?err, %method, ?params, rpc=%self.conn, "bad response!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RequestErrorHandler::ErrorLevel => {
|
RequestErrorHandler::ErrorLevel => {
|
||||||
error!(?err, %method, rpc=%self.conn, "bad response!");
|
error!(?err, %method, ?params, rpc=%self.conn, "bad response!");
|
||||||
}
|
}
|
||||||
RequestErrorHandler::WarnLevel => {
|
RequestErrorHandler::WarnLevel => {
|
||||||
warn!(?err, %method, rpc=%self.conn, "bad response!");
|
warn!(?err, %method, ?params, rpc=%self.conn, "bad response!");
|
||||||
}
|
}
|
||||||
RequestErrorHandler::SaveReverts => {
|
RequestErrorHandler::SaveReverts => {
|
||||||
// TODO: do not unwrap! (doesn't matter much since we check method as a string above)
|
// TODO: do not unwrap! (doesn't matter much since we check method as a string above)
|
||||||
|
Loading…
Reference in New Issue
Block a user