Refactor ExperimentFlags to FeatureFlags for consistency across the codebase

This commit is contained in:
scawful
2025-01-22 13:41:28 -05:00
parent b245b10963
commit de53ccae21
11 changed files with 157 additions and 136 deletions

View File

@@ -9,6 +9,7 @@
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "app/core/features.h"
namespace yaze {
namespace util {
@@ -25,7 +26,7 @@ static void logf(const absl::FormatSpec<Args...> &format, const Args &...args) {
message = absl::StrCat("[", tm.tm_hour, ":", tm.tm_min, ":", tm.tm_sec, "] ",
message, "\n");
if (ExperimentFlags::get().kLogToConsole) {
if (core::FeatureFlags::get().kLogToConsole) {
std::cout << message;
}
static std::ofstream fout(kLogFileOut, std::ios::out | std::ios::app);
@@ -33,4 +34,6 @@ static void logf(const absl::FormatSpec<Args...> &format, const Args &...args) {
}
} // namespace util
} // namespace yaze
} // namespace yaze
#endif // YAZE_UTIL_LOG_H