Skip to content

Commit

Permalink
GH-119 Move log of every failed trx to transaction_failure_tracing lo…
Browse files Browse the repository at this point in the history
…gger.
  • Loading branch information
heifner committed Sep 12, 2022
1 parent ac6fdb8 commit 88e6f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1975,7 +1975,7 @@ producer_plugin_impl::push_transaction( const fc::time_point& block_deadline,
auto failure_code = trace->except->code();
if( failure_code != tx_duplicate::code_value ) {
// this failed our configured maximum transaction time, we don't want to replay it
fc_dlog( _log, "Failed ${c} trx, auth: ${a}, prev billed: ${p}us, ran: ${r}us, id: ${id}",
fc_dlog( _trx_failed_trace_log, "Failed ${c} trx, auth: ${a}, prev billed: ${p}us, ran: ${r}us, id: ${id}",
("c", failure_code)("a", first_auth)("p", prev_billed_cpu_time_us)
( "r", end - start )( "id", trx->id() ) );
_account_fails.add( first_auth, failure_code );
Expand Down

0 comments on commit 88e6f0d

Please sign in to comment.