Skip to content

Commit

Permalink
change some log level for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben002 committed Jul 24, 2018
1 parent e0fd8ac commit 7c0ef41
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/chaincontrol/chaincomponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2195,13 +2195,13 @@ void CChainComponent::ThreadImport()
FILE *file = OpenBlockFile(pos, true);
if (!file)
break; // This error is logged in OpenBlockFile
ILogFormat("Reindexing block file blk%05u.dat...", (unsigned int)iFile);
NLogFormat("Reindexing block file blk%05u.dat...", (unsigned int)iFile);
LoadExternalBlockFile(Params(), file, &pos);
iFile++;
}
cIndexManager.SetReIndexing(false);
bReIndex = false;
ILogFormat("Reindexing finished");
NLogFormat("Reindexing finished");
}

if (cIndexManager.NeedInitGenesisBlock(Params()))
Expand All @@ -2220,12 +2220,12 @@ void CChainComponent::ThreadImport()
if (file)
{
fs::path pathBootstrapOld = GetDataDir() / "bootstrap.dat.old";
ILogFormat("Importing bootstrap.dat...");
NLogFormat("Importing bootstrap.dat...");
LoadExternalBlockFile(Params(), file, nullptr);
RenameOver(pathBootstrap, pathBootstrapOld);
} else
{
ILogFormat("Warning: Could not open bootstrap file %s", pathBootstrap.string());
NLogFormat("Warning: Could not open bootstrap file %s", pathBootstrap.string());
}
}

Expand All @@ -2234,11 +2234,11 @@ void CChainComponent::ThreadImport()
FILE *file = fsbridge::fopen(strFile, "rb");
if (file)
{
ILogFormat("Importing blocks file %s...", strFile);
NLogFormat("Importing blocks file %s...", strFile);
LoadExternalBlockFile(Params(), file, nullptr);
} else
{
WLogFormat("Warning: Could not open blocks file %s", strFile);
NLogFormat("Warning: Could not open blocks file %s", strFile);
}
}

Expand All @@ -2252,7 +2252,7 @@ void CChainComponent::ThreadImport()

if (Args().GetArg<bool>("-stopafterblockimport", false))
{
ILogFormat("Stopping after block import");
NLogFormat("Stopping after block import");
return;
}
}
Expand Down Expand Up @@ -2416,7 +2416,7 @@ bool CChainComponent::LoadExternalBlockFile(const CChainParams &chainParams, FIL
AbortNode(std::string("System error: ") + e.what());
}
if (nLoaded > 0)
ILogFormat("Loaded %i blocks from external file in %dms", nLoaded, GetTimeMillis() - nStart);
NLogFormat("Loaded %i blocks from external file in %dms", nLoaded, GetTimeMillis() - nStart);
return nLoaded > 0;
}

Expand Down

0 comments on commit 7c0ef41

Please sign in to comment.