From: Jonathan McDowell Date: Mon, 31 May 2004 23:48:20 +0000 (+0000) Subject: cscvs to tla changeset 126 X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/3cda9c7bba49d5f9b8321bb66b14db9b9bc2f528?ds=inline;hp=42d43e0ec08e249cecf74ec448cb6405b3c89d84 cscvs to tla changeset 126 Author: noodles Date: 2004/05/27 01:34:18 Add loglevel configuration file setting. --- diff --git a/onak-conf.c b/onak-conf.c index 1ed252c..864f6b5 100644 --- a/onak-conf.c +++ b/onak-conf.c @@ -5,7 +5,7 @@ * * Copyright 2002 Project Purple * - * $Id: onak-conf.c,v 1.8 2003/10/15 21:15:21 noodles Exp $ + * $Id: onak-conf.c,v 1.9 2004/05/27 01:34:18 noodles Exp $ */ #include @@ -114,6 +114,8 @@ void readconfig(const char *configfile) { lladd(config.syncsites, strdup(&curline[9])); } else if (!strncmp("logfile ", curline, 8)) { config.logfile = strdup(&curline[8]); + } else if (!strncmp("loglevel ", curline, 9)) { + setlogthreshold(atoi(&curline[9])); } else if (!strncmp("this_site ", curline, 10)) { config.thissite = strdup(&curline[10]); } else if (!strncmp("socket_name ", curline, 12) || diff --git a/onak.conf b/onak.conf index 020196a..8668c80 100644 --- a/onak.conf +++ b/onak.conf @@ -2,9 +2,11 @@ # onak configuration file. Taken from pksd.conf as a starting point. # -pks_bin_dir /community/pgp-keyserver/bin -db_dir /home/noodles/onak-db/ -logfile /var/log/onak.log +pks_bin_dir /home/noodles/projects/onak/ +db_dir /home/noodles/pgp/db/ +logfile /home/noodles/pgp/onak.log +# Loglevel : 0 is highest debug, default is 3, nothing is 7+ +loglevel 0 ### Set www_port to the port on which HTTP requests should be accepted. ### If you do not want to process HTTP requests, set this to 0. @@ -42,12 +44,12 @@ this_site pgp-public-keys@the.earth.li ### Include a syncsite line for each site with which you are exchanging ### incremental requests. -syncsite pgp-public-keys@keys.nl.pgp.net -syncsite pgp-public-keys@blackhole.pca.dfn.de -syncsite pgp-public-keys@pgp.es.net -syncsite pgp-public-keys@keyserver.linux.it -syncsite pgp-public-keys@pgp.dtype.org -syncsite pgp-public-keys@kjsl.com +#syncsite pgp-public-keys@keys.nl.pgp.net +#syncsite pgp-public-keys@blackhole.pca.dfn.de +#syncsite pgp-public-keys@pgp.es.net +#syncsite pgp-public-keys@keyserver.linux.it +#syncsite pgp-public-keys@pgp.dtype.org +#syncsite pgp-public-keys@kjsl.com ### Set this to 0 to disable mailserver LAST requests completely, to a ### positive integer to limit LAST requests to that many days, or -1