mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Update log statements
Use filesystem path conversion to string() instead of c_str(). Windows may otherwise output an address.
This commit is contained in:
parent
48926d0eeb
commit
71af04669c
3 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ struct fake_core_lmdb
|
||||||
|
|
||||||
folder /= db->get_db_name();
|
folder /= db->get_db_name();
|
||||||
|
|
||||||
LOG_PRINT_L0("Loading blockchain from folder " << folder.c_str() << " ...");
|
LOG_PRINT_L0("Loading blockchain from folder " << folder.string() << " ...");
|
||||||
|
|
||||||
const std::string filename = folder.string();
|
const std::string filename = folder.string();
|
||||||
try
|
try
|
||||||
|
|
|
@ -659,7 +659,7 @@ void BlockchainLMDB::open(const std::string& filename, const int mdb_flags)
|
||||||
if (boost::filesystem::exists(old_files / "data.mdb") ||
|
if (boost::filesystem::exists(old_files / "data.mdb") ||
|
||||||
boost::filesystem::exists(old_files / "lock.mdb"))
|
boost::filesystem::exists(old_files / "lock.mdb"))
|
||||||
{
|
{
|
||||||
LOG_PRINT_L0("Found existing LMDB files in " << old_files.c_str());
|
LOG_PRINT_L0("Found existing LMDB files in " << old_files.string());
|
||||||
LOG_PRINT_L0("Move data.mdb and/or lock.mdb to " << filename << ", or delete them, and then restart");
|
LOG_PRINT_L0("Move data.mdb and/or lock.mdb to " << filename << ", or delete them, and then restart");
|
||||||
throw DB_ERROR("Database could not be opened");
|
throw DB_ERROR("Database could not be opened");
|
||||||
}
|
}
|
||||||
|
|
|
@ -237,7 +237,7 @@ namespace cryptonote
|
||||||
|
|
||||||
folder /= db->get_db_name();
|
folder /= db->get_db_name();
|
||||||
|
|
||||||
LOG_PRINT_L0("Loading blockchain from folder " << folder.c_str() << " ...");
|
LOG_PRINT_L0("Loading blockchain from folder " << folder.string() << " ...");
|
||||||
|
|
||||||
const std::string filename = folder.string();
|
const std::string filename = folder.string();
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in a new issue