goofball222 / unifi

UniFi Docker Container
Apache License 2.0
251 stars 37 forks source link

Alow disabling log output to stdout #135

Closed ishioni closed 10 months ago

ishioni commented 10 months ago

Can we gate unifi.logStdout=true behind an envvar please? With the default outputting debug info, the system log becomes unreadable because journald doesn't have a negative filter to filter out the unifi stuff

goofball222 commented 10 months ago

I added LOGSTDOUT (& READENV to allow manual control of unifi.config.readEnv while I was in there) env vars for the above, default to true if unset.

If you pull the latest 8.0.28 beta version whenever github CI finishes building it you should now be able to set LOGSTDOUT=true/false to control unifi.logStdout.

For anyone else reading, READENV=true/false is also an option although I'm not sure why you'd want it turned off.

ishioni commented 10 months ago

Just bumped to 8.0.23, works perfectly. Thanks!