Compare commits
1 commit
6c7d43916c
...
0e37be8c62
Author | SHA1 | Date | |
---|---|---|---|
0e37be8c62 |
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue