Add missing semicolons after log statements
This commit is contained in:
parent
5d33b43d8d
commit
3f2970fadb
|
@ -2176,7 +2176,7 @@ uint8_t BlockchainBDB::get_hard_fork_version(uint64_t height) const
|
||||||
|
|
||||||
void BlockchainBDB::checkpoint_worker() const
|
void BlockchainBDB::checkpoint_worker() const
|
||||||
{
|
{
|
||||||
LOG_PRINT_L0("Entering BDB checkpoint thread.")
|
LOG_PRINT_L0("Entering BDB checkpoint thread.");
|
||||||
int count = 0;
|
int count = 0;
|
||||||
while(m_run_checkpoint && m_open)
|
while(m_run_checkpoint && m_open)
|
||||||
{
|
{
|
||||||
|
@ -2188,12 +2188,12 @@ void BlockchainBDB::checkpoint_worker() const
|
||||||
count = 0;
|
count = 0;
|
||||||
if(m_env->txn_checkpoint(0, 0, 0) != 0)
|
if(m_env->txn_checkpoint(0, 0, 0) != 0)
|
||||||
{
|
{
|
||||||
LOG_PRINT_L0("BDB txn_checkpoint failed.")
|
LOG_PRINT_L0("BDB txn_checkpoint failed.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG_PRINT_L0("Leaving BDB checkpoint thread.")
|
LOG_PRINT_L0("Leaving BDB checkpoint thread.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void BlockchainBDB::fixup()
|
void BlockchainBDB::fixup()
|
||||||
|
|
|
@ -515,7 +515,7 @@ int import_from_file(FakeCore& simple_core, const std::string& import_file_path,
|
||||||
#if !defined(BLOCKCHAIN_DB) || (BLOCKCHAIN_DB == DB_LMDB)
|
#if !defined(BLOCKCHAIN_DB) || (BLOCKCHAIN_DB == DB_LMDB)
|
||||||
simple_core.m_storage.get_db().show_stats();
|
simple_core.m_storage.get_db().show_stats();
|
||||||
#endif
|
#endif
|
||||||
LOG_PRINT_L0("Number of blocks imported: " << num_imported)
|
LOG_PRINT_L0("Number of blocks imported: " << num_imported);
|
||||||
if (h > 0)
|
if (h > 0)
|
||||||
// TODO: if there was an error, the last added block is probably at zero-based height h-2
|
// TODO: if there was an error, the last added block is probably at zero-based height h-2
|
||||||
LOG_PRINT_L0("Finished at block: " << h-1 << " total blocks: " << h);
|
LOG_PRINT_L0("Finished at block: " << h-1 << " total blocks: " << h);
|
||||||
|
|
|
@ -397,7 +397,7 @@ uint64_t BootstrapFile::seek_to_first_chunk(std::ifstream& import_file)
|
||||||
throw std::runtime_error("Error in deserialization of bootstrap::file_info");
|
throw std::runtime_error("Error in deserialization of bootstrap::file_info");
|
||||||
LOG_PRINT_L0("bootstrap file v" << unsigned(bfi.major_version) << "." << unsigned(bfi.minor_version));
|
LOG_PRINT_L0("bootstrap file v" << unsigned(bfi.major_version) << "." << unsigned(bfi.minor_version));
|
||||||
LOG_PRINT_L0("bootstrap magic size: " << sizeof(file_magic));
|
LOG_PRINT_L0("bootstrap magic size: " << sizeof(file_magic));
|
||||||
LOG_PRINT_L0("bootstrap header size: " << bfi.header_size)
|
LOG_PRINT_L0("bootstrap header size: " << bfi.header_size);
|
||||||
|
|
||||||
uint64_t full_header_size = sizeof(file_magic) + bfi.header_size;
|
uint64_t full_header_size = sizeof(file_magic) + bfi.header_size;
|
||||||
import_file.seekg(full_header_size);
|
import_file.seekg(full_header_size);
|
||||||
|
|
|
@ -88,7 +88,7 @@ public:
|
||||||
{
|
{
|
||||||
m_flush = false;
|
m_flush = false;
|
||||||
|
|
||||||
LOG_PRINT(m_oss.str(), m_log_level)
|
LOG_PRINT(m_oss.str(), m_log_level);
|
||||||
|
|
||||||
if (epee::log_space::console_color_default == m_color)
|
if (epee::log_space::console_color_default == m_color)
|
||||||
{
|
{
|
||||||
|
|
|
@ -394,7 +394,7 @@ bool Blockchain::deinit()
|
||||||
{
|
{
|
||||||
LOG_PRINT_L3("Blockchain::" << __func__);
|
LOG_PRINT_L3("Blockchain::" << __func__);
|
||||||
|
|
||||||
LOG_PRINT_L0("Closing IO Service.")
|
LOG_PRINT_L0("Closing IO Service.");
|
||||||
// stop async service
|
// stop async service
|
||||||
m_async_work_idle.reset();
|
m_async_work_idle.reset();
|
||||||
m_async_pool.join_all();
|
m_async_pool.join_all();
|
||||||
|
@ -2898,7 +2898,7 @@ bool Blockchain::prepare_handle_incoming_blocks(const std::list<block_complete_e
|
||||||
crypto::hash tophash = m_db->top_block_hash();
|
crypto::hash tophash = m_db->top_block_hash();
|
||||||
if (block.prev_id != tophash)
|
if (block.prev_id != tophash)
|
||||||
{
|
{
|
||||||
LOG_PRINT_L1("Skipping prepare blocks. New blocks don't belong to chain.")
|
LOG_PRINT_L1("Skipping prepare blocks. New blocks don't belong to chain.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2958,7 +2958,7 @@ bool Blockchain::prepare_handle_incoming_blocks(const std::list<block_complete_e
|
||||||
|
|
||||||
if (blocks_exist)
|
if (blocks_exist)
|
||||||
{
|
{
|
||||||
LOG_PRINT_L0("Skipping prepare blocks. Blocks exist.")
|
LOG_PRINT_L0("Skipping prepare blocks. Blocks exist.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -257,7 +257,7 @@ namespace cryptonote
|
||||||
m_threads.push_back(boost::thread(attrs, boost::bind(&miner::worker_thread, this)));
|
m_threads.push_back(boost::thread(attrs, boost::bind(&miner::worker_thread, this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_PRINT_L0("Mining has started with " << threads_count << " threads, good luck!" )
|
LOG_PRINT_L0("Mining has started with " << threads_count << " threads, good luck!" );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -380,7 +380,7 @@ namespace nodetool
|
||||||
{
|
{
|
||||||
boost::thread* th = new boost::thread([=, &dns_results, &addr_str]
|
boost::thread* th = new boost::thread([=, &dns_results, &addr_str]
|
||||||
{
|
{
|
||||||
LOG_PRINT_L4("dns_threads[" << result_index << "] created for: " << addr_str)
|
LOG_PRINT_L4("dns_threads[" << result_index << "] created for: " << addr_str);
|
||||||
// TODO: care about dnssec avail/valid
|
// TODO: care about dnssec avail/valid
|
||||||
bool avail, valid;
|
bool avail, valid;
|
||||||
std::vector<std::string> addr_list;
|
std::vector<std::string> addr_list;
|
||||||
|
|
|
@ -157,7 +157,7 @@ namespace
|
||||||
{
|
{
|
||||||
m_flush = false;
|
m_flush = false;
|
||||||
|
|
||||||
LOG_PRINT(m_oss.str(), m_log_level)
|
LOG_PRINT(m_oss.str(), m_log_level);
|
||||||
|
|
||||||
if (epee::log_space::console_color_default == m_color)
|
if (epee::log_space::console_color_default == m_color)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue