Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4557 from EOSIO/noisy-mongo
Browse files Browse the repository at this point in the history
Special case onblock to eliminate log message on every block.
  • Loading branch information
heifner authored Jul 10, 2018
2 parents fa95fac + 2380809 commit 8d5dda5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/mongo_db_plugin/mongo_db_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,11 @@ void add_data( bsoncxx::builder::basic::document& act_doc, mongocxx::collection&
} catch( std::exception& e ) {
ilog( "Unable to convert action.data to ABI: ${s}::${n}, std what: ${e}",
("s", act.account)( "n", act.name )( "e", e.what()));
} catch (fc::exception& e) {
if (act.name != "onblock") { // eosio::onblock not in original eosio.system abi
ilog( "Unable to convert action.data to ABI: ${s}::${n}, fc exception: ${e}",
("s", act.account)( "n", act.name )( "e", e.to_detail_string()));
}
} catch( ... ) {
ilog( "Unable to convert action.data to ABI: ${s}::${n}, unknown exception",
("s", act.account)( "n", act.name ));
Expand Down

0 comments on commit 8d5dda5

Please sign in to comment.