From c8ef3918fcf59472b2973f35ae5b3dfad3ae4fc7 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sat, 29 Apr 2017 22:07:16 +0200 Subject: extra verbosity from config --- pacredir.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pacredir.c') 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) -- cgit v1.2.3-54-g00ecf