Don't replay channels which aren't logged
If a channel has no data on it, there's no real need to rename it. And
if we don't rename it but still open a sender, we can end up consuming
senders for the logger.
Change-Id: I93c89bf046e1a8a6cf770e5b80dcceb1414af707
diff --git a/aos/events/logging/logger.cc b/aos/events/logging/logger.cc
index 7f08f7a..45bda51 100644
--- a/aos/events/logging/logger.cc
+++ b/aos/events/logging/logger.cc
@@ -1298,6 +1298,10 @@
event_loop,
logged_configuration()->channels()->Get(logged_channel_index));
+ if (channel->logger() == LoggerConfig::NOT_LOGGED) {
+ continue;
+ }
+
message_bridge::NoncausalOffsetEstimator *filter = nullptr;
RemoteMessageSender *remote_timestamp_sender = nullptr;