Add robot name to the log file header.
This adds all the knobs that Blue River Technology needs in order to use
the same log file format.
Change-Id: Ie52f576431423745ddc8963f1c59ee249df2a9a6
diff --git a/aos/events/logging/logger.cc b/aos/events/logging/logger.cc
index d8e504f..e2da491 100644
--- a/aos/events/logging/logger.cc
+++ b/aos/events/logging/logger.cc
@@ -11,6 +11,7 @@
#include "aos/events/event_loop.h"
#include "aos/events/logging/logger_generated.h"
#include "aos/flatbuffer_merge.h"
+#include "aos/network/team_number.h"
#include "aos/time/time.h"
#include "flatbuffers/flatbuffers.h"
@@ -114,8 +115,13 @@
flatbuffers::Offset<aos::Configuration> configuration_offset =
CopyFlatBuffer(event_loop_->configuration(), &fbb);
+ flatbuffers::Offset<flatbuffers::String> string_offset =
+ fbb.CreateString(network::GetHostname());
+
aos::logger::LogFileHeader::Builder log_file_header_builder(fbb);
+ log_file_header_builder.add_name(string_offset);
+
log_file_header_builder.add_configuration(configuration_offset);
// The worst case theoretical out of order is the polling period times 2.
// One message could get logged right after the boundary, but be for right