summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
42d43e0)
Author: noodles
Date: 2004/05/27 01:34:18
Add loglevel configuration file setting.
*
* Copyright 2002 Project Purple
*
*
* 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 $
lladd(config.syncsites, strdup(&curline[9]));
} else if (!strncmp("logfile ", curline, 8)) {
config.logfile = strdup(&curline[8]);
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) ||
} else if (!strncmp("this_site ", curline, 10)) {
config.thissite = strdup(&curline[10]);
} else if (!strncmp("socket_name ", curline, 12) ||
# onak configuration file. Taken from pksd.conf as a starting point.
#
# 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.
### 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.
### Include a syncsite line for each site with which you are exchanging
### incremental requests.
### 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
### Set this to 0 to disable mailserver LAST requests completely, to a
### positive integer to limit LAST requests to that many days, or -1