diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-09-15 08:53:55 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-09-15 08:53:55 +0000 |
commit | df46fbe8d506057b23c6d0fd322cfa251ae372ec (patch) | |
tree | 87e842a5a84780834b4d33f39a20d913a962f17f /src/htscoremain.c | |
parent | c11fe60beecd27709c31a0facecfaad5bbdb717b (diff) |
Fixed logging level (especially for robots.txt rules)
(manual backport of r867)
Diffstat (limited to 'src/htscoremain.c')
-rw-r--r-- | src/htscoremain.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/htscoremain.c b/src/htscoremain.c index 5545b04..55dcb80 100644 --- a/src/htscoremain.c +++ b/src/htscoremain.c @@ -1165,6 +1165,7 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) { // case 'Q': httrack_logmode = 0; + opt->debug = LOG_NOTICE; break; case 'v': httrack_logmode = 1; @@ -1385,17 +1386,17 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) { break; // case 'z': - if (opt->debug >= 2) { - opt->debug = 3; /* -Zz */ + if (opt->debug > LOG_INFO) { + opt->debug = LOG_DEBUG; /* -Zz */ } else { - opt->debug = 1; + opt->debug = LOG_INFO; } break; // petit debug case 'Z': - if (opt->debug >= 1) { - opt->debug = 3; /* -Zz */ + if (opt->debug >= LOG_DEBUG) { + opt->debug = LOG_TRACE; /* -Zz */ } else { - opt->debug = 2; + opt->debug = LOG_DEBUG; } break; // GROS debug // |