Skip to content

Commit 20ce5af

Browse files
Print a log message if we fail to shrink the debug log file
1 parent 29c9bdc commit 20ce5af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/logging.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ void BCLog::Logger::ShrinkDebugFile()
255255
// Restart the file with some of the end
256256
std::vector<char> vch(RECENT_DEBUG_HISTORY_SIZE, 0);
257257
if (fseek(file, -((long)vch.size()), SEEK_END)) {
258+
LogPrintf("Failed to shrink debug log file: fseek(...) failed\n");
258259
fclose(file);
259260
return;
260261
}

0 commit comments

Comments
 (0)