diff options
author | Christian Hesse <mail@eworm.de> | 2017-04-29 22:07:16 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-04-29 23:05:40 +0200 |
commit | c8ef3918fcf59472b2973f35ae5b3dfad3ae4fc7 (patch) | |
tree | 88f49f34caa226a49fb89dc547d76e42d8ffa5f4 /pacredir.c | |
parent | 0429aca36e7161e601df164b5c11e020942ebc8a (diff) | |
download | pacredir-c8ef3918fcf59472b2973f35ae5b3dfad3ae4fc7.tar.gz pacredir-c8ef3918fcf59472b2973f35ae5b3dfad3ae4fc7.tar.zst |
extra verbosity from config
Diffstat (limited to 'pacredir.c')
-rw-r--r-- | pacredir.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |