v29.4-roots.4 · Commit 2: [PATCH 02/37] runtime: preserve shared operator controls
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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/logging.cpp
CHANGED
|
@@ -532,7 +532,7 @@ void BCLog::Logger::ShrinkDebugFile()
|
|
| 532 |
// Restart the file with some of the end
|
| 533 |
std::vector<char> vch(RECENT_DEBUG_HISTORY_SIZE, 0);
|
| 534 |
if (fseek(file, -((long)vch.size()), SEEK_END)) {
|
| 535 |
-
LogPrintf("Failed to shrink debug log file: fseek(...) failed\n");
|
| 536 |
fclose(file);
|
| 537 |
return;
|
| 538 |
}
|
|
|
|
| 532 |
// Restart the file with some of the end
|
| 533 |
std::vector<char> vch(RECENT_DEBUG_HISTORY_SIZE, 0);
|
| 534 |
if (fseek(file, -((long)vch.size()), SEEK_END)) {
|
| 535 |
+
LogWarning("Failed to shrink debug log file: fseek(...) failed");
|
| 536 |
fclose(file);
|
| 537 |
return;
|
| 538 |
}
|