Move all the constants to glog
Change-Id: I6cbe4cdb0a4bb31442dda9cb7d2161ff10c371cb
Signed-off-by: Brian Silverman <bsilver16384@gmail.com>
diff --git a/y2021_bot3/constants.cc b/y2021_bot3/constants.cc
index 707ecd6..82e3808 100644
--- a/y2021_bot3/constants.cc
+++ b/y2021_bot3/constants.cc
@@ -8,9 +8,9 @@
#endif
#include "absl/base/call_once.h"
-#include "aos/logging/logging.h"
#include "aos/mutex/mutex.h"
#include "aos/network/team_number.h"
+#include "glog/logging.h"
namespace y2021_bot3 {
namespace constants {
@@ -41,7 +41,7 @@
break;
default:
- AOS_LOG(FATAL, "unknown team #%" PRIu16 "\n", team);
+ LOG(FATAL) << "unknown team: " << team;
}
return r;
@@ -49,7 +49,7 @@
void DoGetValues(const Values **result) {
uint16_t team = ::aos::network::GetTeamNumber();
- AOS_LOG(INFO, "creating a Constants for team %" PRIu16 "\n", team);
+ LOG(INFO) << "creating a Constants for team: " << team;
*result = DoGetValuesForTeam(team);
}