v30.3-roots.1 · Commit 2: [PATCH 02/68] feat(runtime): preserve Roots operator controls on Core 30.3
src/logging.cpp
Before: src/logging.cpp · After: src/logging.cpp
File metadata
index 2ed6835197b759dd6ec0a57c7e58fc4337058bfc..5decd8af58733e367bf16c61f5f3858a215465d9 100644
Download original patch · Release notes
Diff rows 1–8 of 8. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/logging.cpp
CHANGED
|
@@ -532,7 +532,7 @@ void BCLog::Logger::ShrinkDebugFile()
|
|
|
532
532
|
// Restart the file with some of the end
|
|
533
533
|
std::vector<char> vch(RECENT_DEBUG_HISTORY_SIZE, 0);
|
|
534
534
|
if (fseek(file, -((long)vch.size()), SEEK_END)) {
|
|
535
|
-
LogPrintf("Failed to shrink debug log file: fseek(...) failed\n");
|
|
535
|
+
LogWarning("Failed to shrink debug log file: fseek(...) failed");
|
|
536
536
|
fclose(file);
|
|
537
537
|
return;
|
|
538
538
|
}
|