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);
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to