[wpiutil] DataLog: Don't constantly retry log creation when low on space (#6730)

This commit is contained in:
Gold856
2024-06-10 22:22:50 -04:00
committed by GitHub
parent ae6954c78f
commit 3d6b710293

View File

@@ -237,6 +237,7 @@ void DataLogBackgroundWriter::StartLogFile(WriterThreadState& state) {
WPI_ERROR(m_msglog,
"Insufficient free space ({} available), no log being saved",
FormatBytesSize(state.freeSpace));
m_state = kStopped;
} else {
// try preferred filename, or randomize it a few times, before giving up
for (int i = 0; i < 5; ++i) {