From 81bff2df037a218cb973559a2bfbfbd259b1cbad Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 27 Aug 2013 17:57:06 +0200 Subject: Introduce new log level debug2 for potentially very frequent messages --- src/fastd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/fastd.c') diff --git a/src/fastd.c b/src/fastd.c index 0da1c08..65fc59f 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -36,6 +36,7 @@ #include #include #include +#include #include @@ -107,7 +108,7 @@ static void init_log(fastd_context_t *ctx) { pr_debug_errno(ctx, "seteuid"); } - if (ctx->conf->log_syslog_level >= 0) + if (ctx->conf->log_syslog_level > LL_UNSPEC) openlog(ctx->conf->log_syslog_ident, LOG_PID, LOG_DAEMON); fastd_log_file_t *config; @@ -452,7 +453,7 @@ static void handle_tasks(fastd_context_t *ctx) { break; case TASK_KEEPALIVE: - pr_debug(ctx, "sending keepalive to %P", task->peer); + pr_debug2(ctx, "sending keepalive to %P", task->peer); ctx->conf->protocol->send(ctx, task->peer, fastd_buffer_alloc(ctx, 0, ctx->conf->min_encrypt_head_space, ctx->conf->min_encrypt_tail_space)); break; -- cgit v1.2.3