From 1544cddd5afc878b38f1a9183021d380961a789a Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 6 Nov 2019 16:53:48 +0100 Subject: [PATCH] Drop unnecessary (and buggy) debug logs Signed-off-by: Joachim Nilsson --- src/syslogd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/syslogd.c b/src/syslogd.c index 90b72a9..7be5dfb 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -2394,7 +2394,6 @@ static int cfopt(char **ptr, const char *opt) len = strlen(opt); if (!strncasecmp(*ptr, opt, len)) { - logit("Found %s\n", opt); *ptr += len; return 1; } @@ -2687,11 +2686,8 @@ static struct filed *cfline(char *line) default: /* All other targets default to RFC3164 */ - if (f->f_flags & (RFC3164 | RFC5424)) { - logit("%s has %s format logging enabled\n", - (f->f_flags & RFC3164) ? "RFC3164" : "RFC5424"); + if (f->f_flags & (RFC3164 | RFC5424)) break; - } f->f_flags = RFC3164; break;