summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pacredir.c6
-rw-r--r--pacredir.conf3
2 files changed, 9 insertions, 0 deletions
diff --git a/pacredir.c b/pacredir.c
index 9325d74..3f2939a 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -661,6 +661,12 @@ int main(int argc, char ** argv) {
write_log(stderr, "cannot parse file " CONFIGFILE ", continue anyway\n");
/* continue anyway, there is nothing essential in the config file */
} else {
+ int ini_verbose;
+
+ /* extra verbosity from config */
+ ini_verbose = iniparser_getint(ini, "general:verbose", 0);
+ verbose += ini_verbose;
+
/* get max threads */
max_threads = iniparser_getint(ini, "general:max threads", max_threads);
if (verbose > 0 && max_threads > 0)
diff --git a/pacredir.conf b/pacredir.conf
index 75f8514..c9a03cd 100644
--- a/pacredir.conf
+++ b/pacredir.conf
@@ -25,3 +25,6 @@ max threads = 0
#pacserve hosts = test1.domain
#pacserve hosts = test1.domain test2.domain
#pacdbserve hosts = test3.domain test4.domain
+
+# Give extra verbosity for more output.
+verbose = 0