Replace idiosyncratic use of captures in ilog() statements with the usual mechanism
This commit is contained in:
parent
7b8fad0bfa
commit
034acf7399
1 changed files with 6 additions and 3 deletions
|
|
@ -188,7 +188,8 @@ block_production_condition::block_production_condition_enum witness_plugin::bloc
|
||||||
switch( result )
|
switch( result )
|
||||||
{
|
{
|
||||||
case block_production_condition::produced:
|
case block_production_condition::produced:
|
||||||
ilog("Generated block #${n} with timestamp ${t} at time ${c}", (capture));
|
ilog("Generated block #${n} with timestamp ${t} at time ${c}",
|
||||||
|
("n", capture["n"])("t", capture["t"])("c", capture["c"]));
|
||||||
break;
|
break;
|
||||||
case block_production_condition::not_synced:
|
case block_production_condition::not_synced:
|
||||||
ilog("Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production)");
|
ilog("Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production)");
|
||||||
|
|
@ -201,10 +202,12 @@ block_production_condition::block_production_condition_enum witness_plugin::bloc
|
||||||
dlog("Not producing block because slot has not yet arrived");
|
dlog("Not producing block because slot has not yet arrived");
|
||||||
break;
|
break;
|
||||||
case block_production_condition::no_private_key:
|
case block_production_condition::no_private_key:
|
||||||
ilog("Not producing block because I don't have the private key for ${scheduled_key}", (capture) );
|
ilog("Not producing block because I don't have the private key for ${scheduled_key}",
|
||||||
|
("n", capture["n"])("t", capture["t"])("c", capture["c"]));
|
||||||
break;
|
break;
|
||||||
case block_production_condition::low_participation:
|
case block_production_condition::low_participation:
|
||||||
elog("Not producing block because node appears to be on a minority fork with only ${pct}% witness participation", (capture) );
|
elog("Not producing block because node appears to be on a minority fork with only ${pct}% witness participation",
|
||||||
|
("n", capture["n"])("t", capture["t"])("c", capture["c"]));
|
||||||
break;
|
break;
|
||||||
case block_production_condition::lag:
|
case block_production_condition::lag:
|
||||||
elog("Not producing block because node didn't wake up within 500ms of the slot time.");
|
elog("Not producing block because node didn't wake up within 500ms of the slot time.");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue