summaryrefslogtreecommitdiff
path: root/accel-pptpd/log.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-10-05 17:51:23 +0400
committerKozlov Dmitry <dima@server>2010-10-05 17:51:23 +0400
commit5cf93f33f2350ed3b92f73ead1d2829a6883810a (patch)
treeab1d7fe7b27ca44ef3ee6618636d275c26f98c76 /accel-pptpd/log.c
parent7f16563bd5a4ef21b970e8dcbab0e5cbe02bfe97 (diff)
downloadaccel-ppp-5cf93f33f2350ed3b92f73ead1d2829a6883810a.tar.gz
accel-ppp-5cf93f33f2350ed3b92f73ead1d2829a6883810a.zip
tidied logs
Diffstat (limited to 'accel-pptpd/log.c')
-rw-r--r--accel-pptpd/log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/accel-pptpd/log.c b/accel-pptpd/log.c
index e942686b..476c077f 100644
--- a/accel-pptpd/log.c
+++ b/accel-pptpd/log.c
@@ -425,6 +425,10 @@ static void __init log_init(void)
.sa_handler = sighup,
};
+ opt = conf_get_opt("log", "level");
+ if (opt && atoi(opt) >= 0)
+ log_level = atoi(opt);
+
opt = conf_get_opt("log", "log-emerg");
if (opt) {
emerg_file = fopen(opt, "a");