refactor: Convert system/logging cfg to proto3

This commit is contained in:
John Colvin committed 2023-03-20 13:23:48 -04:00
1 parent 539d1cfeae
commit f5741d8095
47 files changed
+221 -196

No files matched your search

@@ -1,7 +1,7 @@
#include "ErrorReportService.h"
#include "lib/config/config.h"
#include "lib/config/protos/system.pb.h"
#include "lib/config/protos/system_config.pb.h"
#include "lib/logging/logging.h"
#include "lib/utils/bts_assert.h"
#include "lib/utils/datetime.h"
@@ -15,7 +15,7 @@ namespace bts {
namespace support {
std::string get_report_dir() {
return config::get<config::System>().data_path() + "error_reports/";
return config::get<config::SystemConfig>().data_path() + "error_reports/";
}
ErrorReportServer::ErrorReportServer(bts::api::ServiceContext &context)
@@ -84,4 +84,4 @@ void ErrorReportServer::send_report(
}
} // namespace support
} // namespace bts
} // namespace bts