aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick M <taclane@users.noreply.github.com>2023-01-24 10:08:55 -0500
committerNick M <taclane@users.noreply.github.com>2023-01-24 10:08:55 -0500
commitfb29972c875534950d5139cc89b19bce2c26d507 (patch)
tree786f06c92eb490c2a2d134e53d39c16741e51339
parent457fe2fcc100a6b17c5706eecac12facf3ef93f6 (diff)
help screen fix
-rwxr-xr-xtrunk-recorder/main.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/trunk-recorder/main.cc b/trunk-recorder/main.cc
index 178d4e59..103512f5 100755
--- a/trunk-recorder/main.cc
+++ b/trunk-recorder/main.cc
@@ -155,11 +155,11 @@ bool load_config(string config_file) {
BOOST_LOG_TRIVIAL(info) << "Log Directory: " << config.log_dir;
if (config.log_file) {
logging::add_file_log(
- keywords::file_name = config.log_dir + "/%m-%d-%Y_%H%M_%2N.log",
- keywords::format = "[%TimeStamp%] (%Severity%) %Message%",
- keywords::rotation_size = 100 * 1024 * 1024,
- keywords::time_based_rotation = sinks::file::rotation_at_time_point(0, 0, 0),
- keywords::auto_flush = true);
+ keywords::file_name = config.log_dir + "/%m-%d-%Y_%H%M_%2N.log",
+ keywords::format = "[%TimeStamp%] (%Severity%) %Message%",
+ keywords::rotation_size = 100 * 1024 * 1024,
+ keywords::time_based_rotation = sinks::file::rotation_at_time_point(0, 0, 0),
+ keywords::auto_flush = true);
}
BOOST_LOG_TRIVIAL(info) << "\n-------------------------------------\n Trunk Recorder\n-------------------------------------\n";
@@ -730,7 +730,7 @@ bool start_recorder(Call *call, TrunkMessage message, System *sys) {
}
if (!source_found) {
- BOOST_LOG_TRIVIAL(error) << "[" << sys->get_short_name() << "]\t\033[0;34m" << call->get_call_num() << "C\033[0m\tTG: " << call->get_talkgroup_display() << "\tFreq: " << format_freq(call->get_freq()) << "\t\u001b[36mNot Recording: no source covering Freq\u001b[0m";
+ BOOST_LOG_TRIVIAL(error) << "[" << sys->get_short_name() << "]\t\033[0;34m" << call->get_call_num() << "C\033[0m\tTG: " << call->get_talkgroup_display() << "\tFreq: " << format_freq(call->get_freq()) << "\t\u001b[36mNot Recording: no source covering Freq\u001b[0m";
return false;
}
return false;
@@ -1577,7 +1577,7 @@ int main(int argc, char **argv) {
// std::locale::global(std::locale("C"));
boost::program_options::options_description desc("Options");
- desc.add_options()("help,h", "Help screen")("config", boost::program_options::value<string>()->default_value("./config.json"), "Config File")("version", "Version Informaiotn");
+ desc.add_options()("help,h", "Help screen")("config,c", boost::program_options::value<string>()->default_value("./config.json"), "Config File")("version,v", "Version Information");
boost::program_options::variables_map vm;
boost::program_options::store(parse_command_line(argc, argv, desc), vm);
@@ -1589,7 +1589,7 @@ int main(int argc, char **argv) {
}
if (vm.count("help")) {
- std::cout << "Usage: options_description [options]\n";
+ std::cout << "Usage: trunk-recorder [options]\n";
std::cout << desc;
exit(0);
}