From bbf7c66f5ea6175ff9db63e8b2f4f869c47d4e2b Mon Sep 17 00:00:00 2001 From: bz Date: Thu, 23 Aug 2018 20:44:26 +0000 Subject: [PATCH] Reduce the log level of tcpd_warn calls from ERR to WARNING. This matches the name and avoids logging of warnings to console with default syslog.conf, esp. getting rid of: warning: /etc/hosts.allow, line ..: can't verify hostname: \ getaddrinfo(.., AF_INET) failed --- contrib/tcp_wrappers/diag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/tcp_wrappers/diag.c b/contrib/tcp_wrappers/diag.c index e0bd792c319d..ac3df07a202e 100644 --- a/contrib/tcp_wrappers/diag.c +++ b/contrib/tcp_wrappers/diag.c @@ -52,7 +52,7 @@ void VARARGS(tcpd_warn, char *, format) va_list ap; VASTART(ap, char *, format); - tcpd_diag(LOG_ERR, "warning", format, ap); + tcpd_diag(LOG_WARNING, "warning", format, ap); VAEND(ap); }