Improved syslog logging.

* fixed missing log level for non-error message, causes systemd to send broadcast messages
 * completly removed logging to stderr while started via systemd

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2023-10-19 13:38:26 +02:00
parent 3d0c06ef54
commit 315dc32baf
3 changed files with 3 additions and 3 deletions

View File

@@ -352,7 +352,7 @@ void vlogger(int is_error, char const * const format, va_list ap)
{
if (is_error == 0)
{
vsyslog(LOG_DAEMON, format, ap);
vsyslog(LOG_DAEMON | LOG_INFO, format, ap);
}
else
{