cscvs to tla changeset 126
authorJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:48:20 +0000 (23:48 +0000)
committerJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:48:20 +0000 (23:48 +0000)
Author: noodles
Date: 2004/05/27 01:34:18
Add loglevel configuration file setting.

onak-conf.c
onak.conf

index 1ed252cd396c0c40d283f28a9f4653f18e7c7492..864f6b5d161ebbbe538321c058cbd752e047336f 100644 (file)
@@ -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 <ctype.h>
@@ -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) ||
index 020196a559a41899f81563136c48cd0ad474080b..8668c801ab8ca4b374445864c3bebe757f33171e 100644 (file)
--- 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