Move all the constants to glog
Change-Id: I6cbe4cdb0a4bb31442dda9cb7d2161ff10c371cb
Signed-off-by: Brian Silverman <bsilver16384@gmail.com>
diff --git a/y2018/BUILD b/y2018/BUILD
index 0d0cb5d..9c845fd 100644
--- a/y2018/BUILD
+++ b/y2018/BUILD
@@ -54,7 +54,6 @@
target_compatible_with = ["@platforms//os:linux"],
visibility = ["//visibility:public"],
deps = [
- "//aos/logging",
"//aos/network:team_number",
"//aos/stl_mutex",
"//frc971:constants",
@@ -62,6 +61,7 @@
"//y2018/control_loops/drivetrain:polydrivetrain_plants",
"//y2018/control_loops/superstructure/arm:dynamics",
"//y2018/control_loops/superstructure/intake:intake_plants",
+ "@com_github_google_glog//:glog",
],
)
diff --git a/y2018/constants.cc b/y2018/constants.cc
index e6951cc..5a180ef 100644
--- a/y2018/constants.cc
+++ b/y2018/constants.cc
@@ -9,9 +9,9 @@
#include "sanitizer/lsan_interface.h"
#endif
-#include "aos/logging/logging.h"
#include "aos/network/team_number.h"
#include "aos/stl_mutex/stl_mutex.h"
+#include "glog/logging.h"
#include "y2018/control_loops/drivetrain/drivetrain_dog_motor_plant.h"
#include "y2018/control_loops/drivetrain/polydrivetrain_dog_motor_plant.h"
@@ -128,7 +128,7 @@
break;
default:
- AOS_LOG(FATAL, "unknown team #%" PRIu16 "\n", team);
+ LOG(FATAL) << "unknown team: " << team;
}
return r;
@@ -136,7 +136,7 @@
const Values &DoGetValues() {
const 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;
return GetValuesForTeam(team);
}