aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-05-03 15:44:04 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-05-03 15:44:04 +0200
commit20ce5af4c647d9ebd97b40683bd0747383c9dc20 (patch)
tree3ab83eb664539307ecff60ae6c7e0aae148eaca9 /src
parent29c9bdcc141afb14fc9e1213f49de4fcded6ce0c (diff)
Print a log message if we fail to shrink the debug log file
Diffstat (limited to 'src')
-rw-r--r--src/logging.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/logging.cpp b/src/logging.cpp
index 2a55d3665b..87756fb4cc 100644
--- a/src/logging.cpp
+++ b/src/logging.cpp
@@ -255,6 +255,7 @@ void BCLog::Logger::ShrinkDebugFile()
// Restart the file with some of the end
std::vector<char> vch(RECENT_DEBUG_HISTORY_SIZE, 0);
if (fseek(file, -((long)vch.size()), SEEK_END)) {
+ LogPrintf("Failed to shrink debug log file: fseek(...) failed\n");
fclose(file);
return;
}