Skip to content

Commit

Permalink
fixed logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cogutvalera committed Oct 1, 2018
1 parent 42b9d6f commit ca614ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions libraries/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ void application_impl::startup()
modified_genesis = true;

ilog(
"Used genesis timestamp: ${timestamp} (PLEASE RECORD THIS)\n",
"Used genesis timestamp: ${timestamp} (PLEASE RECORD THIS)",
("timestamp", genesis.initial_timestamp.to_iso_string())
);
}
Expand All @@ -349,11 +349,11 @@ void application_impl::startup()
FC_ASSERT( genesis.initial_witness_candidates.size() >= genesis.initial_active_witnesses );
set_dbg_init_key( genesis, init_key );
modified_genesis = true;
ilog("Set init witness key to ${init_key}\n", ("init_key", init_key));
ilog("Set init witness key to ${init_key}", ("init_key", init_key));
}
if( modified_genesis )
{
wlog("WARNING: GENESIS WAS MODIFIED, YOUR CHAIN ID MAY BE DIFFERENT\n");
wlog("WARNING: GENESIS WAS MODIFIED, YOUR CHAIN ID MAY BE DIFFERENT");
genesis_str += "BOGUS";
genesis.initial_chain_id = fc::sha256::hash( genesis_str );
}
Expand Down Expand Up @@ -992,9 +992,9 @@ void application::initialize(const fc::path& data_dir, const boost::program_opti
return;
}

ilog("Updating genesis state in file ${genesis_out} \n", ("genesis_out", genesis_out.generic_string()));
std::cerr << "Updating genesis state in file " << genesis_out.generic_string() << "\n";
} else {
ilog("Creating example genesis state in file ${genesis_out} \n", ("genesis_out", genesis_out.generic_string()));
std::cerr << "Creating example genesis state in file " << genesis_out.generic_string() << "\n";
}
fc::json::save_to_file(genesis_state, genesis_out);

Expand Down
6 changes: 2 additions & 4 deletions libraries/plugins/witness/witness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ void new_chain_banner( const graphene::chain::database& db )
"\n");
if( db.get_slot_at_time( fc::time_point::now() ) > 200 )
{
wlog("Your genesis seems to have an old timestamp\n"
"Please consider using the --genesis-timestamp option to give your genesis a recent timestamp\n"
"\n"
);
wlog("Your genesis seems to have an old timestamp");
wlog("Please consider using the --genesis-timestamp option to give your genesis a recent timestamp");
}
}

Expand Down

0 comments on commit ca614ea

Please sign in to comment.