- // xbt_log_control_set("simu.thres:verbose");
- xbt_log_control_set("simu.fmt:'[%h %r] [%c/%p] %m%n'");
- xbt_log_control_set("main.fmt:'[%c/%p] %m%n'");
+ bool do_log_control_set = true;
+ for (int i = 1 ; do_log_control_set && i < argc ; i++)
+ do_log_control_set = !(argv[i][0] == '-' && argv[i][1] != '-' &&
+ strchr(argv[i] + 1, 'v'));
+ if (do_log_control_set) {
+ // xbt_log_control_set("simu.thres:verbose");
+ xbt_log_control_set("simu.fmt:'[%h %r] [%c/%p] %m%n'");
+ xbt_log_control_set("main.fmt:'[%c/%p] %m%n'");
+ }