Compare commits

..

1 commit

Author SHA1 Message Date
0e37be8c62 Added cmd arg handling to set log level
Some checks failed
PR Check / on-push-commit-check (push) Has been cancelled
2024-12-23 14:31:18 +00:00
2 changed files with 2 additions and 3 deletions

View file

@ -91,7 +91,7 @@ auto main(int argc, char** argv) -> int {
vm["log_level"].as<int>(), vm["log_level"].as<int>(),
SPDLOG_ACTIVE_LEVEL); SPDLOG_ACTIVE_LEVEL);
} }
} catch(const std::exception& e) { } catch(const po::error& e) {
SPDLOG_CRITICAL("Cmd parse error: {}", e.what()); SPDLOG_CRITICAL("Cmd parse error: {}", e.what());
return 1; return 1;
} }

View file

@ -2,7 +2,6 @@
#include <spdlog/spdlog.h> #include <spdlog/spdlog.h>
#include <boost/program_options.hpp> #include <boost/program_options.hpp>
#include <exception>
#include <print> #include <print>
#include <stdexcept> #include <stdexcept>
@ -48,7 +47,7 @@ auto main(int argc, char** argv) -> int {
vm["log_level"].as<int>(), vm["log_level"].as<int>(),
SPDLOG_ACTIVE_LEVEL); SPDLOG_ACTIVE_LEVEL);
} }
} catch(const std::exception& e) { } catch(const po::error& e) {
SPDLOG_CRITICAL("Cmd parse error: {}", e.what()); SPDLOG_CRITICAL("Cmd parse error: {}", e.what());
return 1; return 1;
} }