log to syslog even if in foreground

This commit is contained in:
Yves Rutschle 2020-05-28 10:13:54 +00:00
parent 61191edf7c
commit c595aadb4d
2 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,9 @@ vNEXT:
Update Let's Encrypt entry in example.cfg for tls-alpn-01
challenges; tls-sni-* challenges are now deprecated.
Log to syslog even if in foreground (for people who
use fail2ban)
v1.20: 20NOV2018
Added support for socks5 protocol (Eugene Protozanov)

View File

@ -561,8 +561,8 @@ void log_message(int type, const char* msg, ...)
va_start(ap, msg);
if (cfg.foreground)
vfprintf(stderr, msg, ap);
else
vsyslog(type, msg, ap);
vsyslog(type, msg, ap);
va_end(ap);
}