xref: /openbmc/bmcweb/src/webserver_main.cpp (revision 56d0bb068b69c5b8853e44d7af179030adcacd64)
1 
2 
3 #include "logging.hpp"
4 #include "webserver_run.hpp"
5 
6 #include <exception>
7 #include <memory>
8 #include <string>
9 
10 int main(int /*argc*/, char** /*argv*/)
11 {
12     try
13     {
14         return run();
15     }
16     catch (const std::exception& e)
17     {
18         BMCWEB_LOG_CRITICAL("Threw exception to main: {}", e.what());
19         return -1;
20     }
21     catch (...)
22     {
23         BMCWEB_LOG_CRITICAL("Threw exception to main");
24         return -1;
25     }
26 }
27