Put each log file in a folder
The filesystem was struggling. If the path has a trailing /, then put
everything inside the folder. Otherwise, use that as the base name and
append.
Change-Id: I042e4886989724c5e179fe81b3017a695cbfd016
diff --git a/aos/logging/log_namer.cc b/aos/logging/log_namer.cc
index f025054..c1dd30a 100644
--- a/aos/logging/log_namer.cc
+++ b/aos/logging/log_namer.cc
@@ -146,11 +146,11 @@
AllocateLogName(&tmp, folder, basename);
std::string log_base_name = tmp;
- std::string log_roborio_name = log_base_name + "_roborio_data.bfbs";
+ std::string log_roborio_name = log_base_name + "/";
free(tmp);
char *tmp2;
- if (asprintf(&tmp2, "%s/%s-current.bfbs", folder, basename) == -1) {
+ if (asprintf(&tmp2, "%s/%s-current", folder, basename) == -1) {
PLOG(WARNING) << "couldn't create current symlink name";
} else {
if (unlink(tmp2) == -1 && (errno != EROFS && errno != ENOENT)) {