Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2018 20:44:27 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338277 - head/contrib/tcp_wrappers
Message-ID:  <201808232044.w7NKiRNZ051898@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Thu Aug 23 20:44:26 2018
New Revision: 338277
URL: https://svnweb.freebsd.org/changeset/base/338277

Log:
  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

Modified:
  head/contrib/tcp_wrappers/diag.c

Modified: head/contrib/tcp_wrappers/diag.c
==============================================================================
--- head/contrib/tcp_wrappers/diag.c	Thu Aug 23 20:34:22 2018	(r338276)
+++ head/contrib/tcp_wrappers/diag.c	Thu Aug 23 20:44:26 2018	(r338277)
@@ -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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808232044.w7NKiRNZ051898>