Compare commits

..

1 commit

Author SHA1 Message Date
6c7d43916c Added cmd arg handling to set log level
All checks were successful
PR Check / on-push-commit-check (push) Successful in 15m30s
2024-12-23 14:42:34 +00:00
2 changed files with 3 additions and 2 deletions

View file

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

View file

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