Skip to content

Commit

Permalink
fix(rpc): tracing target (#4161)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
  • Loading branch information
rkrasiuk and mattsse authored Aug 12, 2023
1 parent 1c23075 commit 81e8ad4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/rpc/rpc/src/eth/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ where
let pending_block = match pending.build_block(this.provider(), this.pool()) {
Ok(block) => block,
Err(err) => {
tracing::debug!(target = "rpc", "Failed to build pending block: {:?}", err);
tracing::debug!(target: "rpc", "Failed to build pending block: {:?}", err);
return Ok(None)
}
};
Expand Down
4 changes: 2 additions & 2 deletions crates/rpc/rpc/src/layers/jwt_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ impl AuthValidator for JwtAuthValidator {
Some(jwt) => match self.secret.validate(jwt) {
Ok(_) => Ok(()),
Err(e) => {
error!(target = "engine::jwt-validator", "Invalid JWT: {e}");
error!(target: "engine::jwt-validator", "Invalid JWT: {e}");
let response = err_response(e);
Err(response)
}
},
None => {
let e = JwtError::MissingOrInvalidAuthorizationHeader;
error!(target = "engine::jwt-validator", "Invalid JWT: {e}");
error!(target: "engine::jwt-validator", "Invalid JWT: {e}");
let response = err_response(e);
Err(response)
}
Expand Down

0 comments on commit 81e8ad4

Please sign in to comment.