mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 00:05:59 +08:00
loggerd: do not LOGW twice when logger.part == 0 (#19795)
* fix LOGW * space
This commit is contained in:
@@ -618,10 +618,7 @@ int main(int argc, char** argv) {
|
||||
|
||||
int err = logger_next(&s.logger, LOG_ROOT.c_str(), s.segment_path, sizeof(s.segment_path), &s.rotate_segment);
|
||||
assert(err == 0);
|
||||
if (s.logger.part == 0) {
|
||||
LOGW("logging to %s", s.segment_path);
|
||||
}
|
||||
LOGW("rotated to %s", s.segment_path);
|
||||
LOGW((s.logger.part == 0) ? "logging to %s" : "rotated to %s", s.segment_path);
|
||||
|
||||
// rotate encoders
|
||||
for (auto &r : s.rotate_state) r.rotate();
|
||||
|
||||
Reference in New Issue
Block a user