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

@@ -5,7 +5,7 @@ Requires=ndpisrvd.service
[Service]
Type=simple
ExecStart=/usr/sbin/nDPId -i %i -l -A -z -c /var/run/ndpisrvd-collector
ExecStart=/usr/sbin/nDPId -i %i -A -z -c /var/run/ndpisrvd-collector
Restart=on-failure
[Install]

View File

@@ -4,7 +4,7 @@ After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/nDPIsrvd -l -c /var/run/ndpisrvd-collector
ExecStart=/usr/bin/nDPIsrvd -c /var/run/ndpisrvd-collector
ExecStopPost=/bin/rm -f /var/run/ndpisrvd-collector
Restart=on-failure

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
{