From df46fbe8d506057b23c6d0fd322cfa251ae372ec Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Sun, 15 Sep 2013 08:53:55 +0000 Subject: Fixed logging level (especially for robots.txt rules) (manual backport of r867) --- src/htscoremain.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/htscoremain.c') 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 // -- cgit v1.2.3