Push renaming of the base away from general logger
It is moved to specific instance of log backend. Not all backends
support renaming.
Change-Id: I2176a283b5dcb1101f69428b9072ffaab7c4d8f9
Signed-off-by: Austin Schuh <austin.schuh@bluerivertech.com>
diff --git a/aos/events/logging/log_writer.cc b/aos/events/logging/log_writer.cc
index 3db6646..b6ee4a5 100644
--- a/aos/events/logging/log_writer.cc
+++ b/aos/events/logging/log_writer.cc
@@ -230,16 +230,7 @@
}
}
-bool Logger::RenameLogBase(std::string new_base_name) {
- // TODO(Naman): Got a crash in RenameLogBase. Putting in a CHECK_NOTNULL to
- // catch the bug if it happens again
- if (new_base_name == CHECK_NOTNULL(log_namer_)->base_name()) {
- return true;
- }
- log_namer_->set_base_name(new_base_name);
- Rotate();
- return true;
-}
+
std::string Logger::WriteConfiguration(LogNamer *log_namer) {
std::string config_sha256;