Skip to content

Commit 462ea17

Browse files
author
xedaq
committed
Merge branch 'master' of https://github.com/coderdj/redax
2 parents 044317a + c8e09cb commit 462ea17

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

ccontrol.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int PrintUsage() {
2727
<< "--id <id number>: id number of this controller instance, required\n"
2828
<< "--uri <mongo uri>: full MongoDB URI, required\n"
2929
<< "--db <database name>: name of the database to use, default \"daq\"\n"
30-
<< "--logdir <directory>: where to write the logs, default /live_data/redax_logs\n"
30+
<< "--logdir <directory>: where to write the logs\n"
3131
<< "--help: print this message\n"
3232
<< "\n";
3333
return 1;
@@ -36,8 +36,7 @@ int PrintUsage() {
3636
int main(int argc, char** argv){
3737

3838
mongocxx::instance instance{};
39-
std::string mongo_uri = "", dbname="daq", sid="";
40-
std::string log_dir = "/live_data/redax_logs";
39+
std::string mongo_uri = "", dbname="daq", sid="", log_dir = "";
4140
int log_retention = 7, c, opt_index;
4241
struct option longopts[] = {
4342
{"id", required_argument, 0, 0},

main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ int PrintUsage() {
6363
<< "--id <id number>: id number of this readout instance, required\n"
6464
<< "--uri <mongo uri>: full MongoDB URI, required\n"
6565
<< "--db <database name>: name of the database to use, default \"daq\"\n"
66-
<< "--logdir <directory>: where to write the logs, default /live_data/redax_logs\n"
66+
<< "--logdir <directory>: where to write the logs\n"
6767
<< "--help: print this message\n"
6868
<< "\n";
6969
return 1;
@@ -78,7 +78,7 @@ int main(int argc, char** argv){
7878
signal(SIGINT, SignalHandler);
7979
signal(SIGTERM, SignalHandler);
8080

81-
std::string current_run_id="none", log_dir = "/live_data/redax_logs";
81+
std::string current_run_id="none", log_dir = "";
8282
std::string dbname = "daq", suri = "", sid = "";
8383
int log_retention = 7; // days
8484
int c, opt_index;

0 commit comments

Comments
 (0)