| #include "webserver_main_setup.hpp" | |
| #ifdef BMCWEB_ENABLE_GRPC | |
| #include "absl/base/log_severity.h" | |
| #include "absl/flags/flag.h" | |
| #include "absl/flags/parse.h" | |
| #include "absl/log/globals.h" | |
| int main(int argc, char** argv) { | |
| absl::ParseCommandLine(argc, argv); | |
| absl::SetMinLogLevel( | |
| static_cast<absl::LogSeverityAtLeast>(absl::GetFlag(FLAGS_minloglevel))); | |
| absl::SetStderrThreshold(static_cast<absl::LogSeverityAtLeast>( | |
| absl::GetFlag(FLAGS_stderrthreshold))); | |
| #else | |
| int main(int /*argc*/, char** /*argv*/) { | |
| #endif | |
| return run(); | |
| } |