Log correct debug.log filename to stdout
This commit is contained in:
@@ -900,7 +900,7 @@ void ShrinkDebugFile()
|
||||
int maxlogsize = GetArg("-maxdebugfilesize", 15);
|
||||
unsigned int MAX_DEBUG_LOG_SIZE = maxlogsize*(1024*1024); // convert to MB
|
||||
if (file && boost::filesystem::file_size(pathLog) > MAX_DEBUG_LOG_SIZE ) {
|
||||
fprintf(stderr,"Shrinking %s to be at most %d bytes\n", GetDataDir().c_str(), MAX_DEBUG_LOG_SIZE );
|
||||
fprintf(stderr,"Shrinking %s to be at most %d bytes\n", pathLog.string().c_str(), MAX_DEBUG_LOG_SIZE );
|
||||
// Restart the file with some of the end
|
||||
std::vector <char> vch(200000,0);
|
||||
fseek(file, -((long)vch.size()), SEEK_END);
|
||||
|
||||
Reference in New Issue
Block a user