Skip to content

Commit

Permalink
Merge pull request hyperledger-archives#1897 from boydjohnson/fix.log…
Browse files Browse the repository at this point in the history
…ging.statements

Remove noisy debug logging statement, fix typo
  • Loading branch information
boydjohnson authored Oct 15, 2018
2 parents 999e43f + 5c7a0bb commit e32e378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion validator/src/journal/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl ChainControllerState {
};

info!(
"Building fork resoultion for chain head '{}' against new block '{}'",
"Building fork resolution for chain head '{}' against new block '{}'",
&chain_head, &new_block
);
if let Some(prior_heads_successor) = result.new_chain.get(0) {
Expand Down
5 changes: 1 addition & 4 deletions validator/src/journal/commit_store_ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,7 @@ unsafe fn return_proto<I, O: protobuf::Message + From<I>>(

fn map_database_error(err: DatabaseError) -> ErrorCode {
match err {
DatabaseError::NotFoundError(s) => {
debug!("Not found: {}", s);
ErrorCode::NotFound
}
DatabaseError::NotFoundError(_) => ErrorCode::NotFound,
err => {
error!("Database error: {:?}", err);
ErrorCode::DatabaseError
Expand Down

0 comments on commit e32e378

Please sign in to comment.