diff options
| -rw-r--r-- | btpd/main.c | 4 | ||||
| -rw-r--r-- | btpd/opts.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/btpd/main.c b/btpd/main.c index 41ddb05..3946592 100644 --- a/btpd/main.c +++ b/btpd/main.c @@ -177,6 +177,7 @@ static struct option longopts[] = { { "ipcprot", required_argument, &longval, 8 }, { "empty-start", no_argument, &longval, 9 }, { "ip", required_argument, &longval, 10 }, + { "logmask", required_argument, &longval, 11 }, { "help", no_argument, &longval, 128 }, { NULL, 0, NULL, 0 } }; @@ -235,6 +236,9 @@ main(int argc, char **argv) case 10: tr_ip_arg = optarg; break; + case 11: + btpd_logmask = atoi(optarg); + break; default: usage(); } diff --git a/btpd/opts.c b/btpd/opts.c index 31f7e25..05fb8e2 100644 --- a/btpd/opts.c +++ b/btpd/opts.c @@ -1,11 +1,7 @@ #include "btpd.h" const char *btpd_dir; -#ifdef DEBUG -uint32_t btpd_logmask = BTPD_L_ALL; -#else uint32_t btpd_logmask = BTPD_L_BTPD | BTPD_L_ERROR; -#endif int net_max_uploads = -2; unsigned net_max_peers; unsigned net_bw_limit_in; |