LMS-Community / slimserver-platforms

Platform-specific build tools for Lyrion Music Server
48 stars 41 forks source link

Ignore logs on stdout in systemd service #41

Closed robho closed 1 year ago

robho commented 1 year ago

The systemd service launches LMS in the foreground and this causes logs to be mirrored to stdout. See https://github.com/Logitech/slimserver/blob/public/8.4/Slim/Utils/Log.pm#L166

Logs on stdout are picked up by systemd and processed, but since LMS has its own log processing we don't need systemd to handle log messages.

On a standard debian system the stdout logs would be sent to syslog and then written to file (syslog and daemon.log). This means that LMS logs would end up in three places (LMS logs, syslog and daemon.log). This is especially bad when doing debugging and all debug messages are written to three files - it gets very noisy.

mherger commented 1 year ago

Can this one be closed in favor of #42?