[wpilib] Change default Rio log dir from /home/lvuser to /home/lvuser/logs (#5899)

This commit is contained in:
Peter Johnson
2023-11-14 12:20:51 -08:00
committed by GitHub
parent a8b80ca256
commit e117274a67
3 changed files with 12 additions and 2 deletions

View File

@@ -229,8 +229,11 @@ static std::string MakeLogDir(std::string_view dir) {
"DataLogManager: Logging to RoboRIO 1 internal storage is "
"not recommended! Plug in a FAT32 formatted flash drive!");
}
#endif
fs::create_directory("/home/lvuser/logs", ec);
return "/home/lvuser/logs";
#else
return filesystem::GetOperatingDirectory();
#endif
}
static std::string MakeLogFilename(std::string_view filenameOverride) {