From 3d6b710293d1e78f2d43834068cf610f53440f0f Mon Sep 17 00:00:00 2001 From: Gold856 <117957790+Gold856@users.noreply.github.com> Date: Mon, 10 Jun 2024 22:22:50 -0400 Subject: [PATCH] [wpiutil] DataLog: Don't constantly retry log creation when low on space (#6730) --- wpiutil/src/main/native/cpp/DataLogBackgroundWriter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wpiutil/src/main/native/cpp/DataLogBackgroundWriter.cpp b/wpiutil/src/main/native/cpp/DataLogBackgroundWriter.cpp index 2db52e3cf7..ec01346ef0 100644 --- a/wpiutil/src/main/native/cpp/DataLogBackgroundWriter.cpp +++ b/wpiutil/src/main/native/cpp/DataLogBackgroundWriter.cpp @@ -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) {