[SOLVED] Minetest, Ubuntu server, and syslog

Post Reply
User avatar
acidzebra
Member
Posts: 75
Joined: Sun Sep 10, 2017 09:11

[SOLVED] Minetest, Ubuntu server, and syslog

by acidzebra » Post

I run minetest like this

Code: Select all

/minetest/bin/minetestserver --gameid mygame--config /minetest/minetest.conf --logfile /minetest/minetest.log
minetest.conf contains

Code: Select all

debug_log_level = warning
This all works as expected, except I saw my /var/log/syslog getting fairly large and it appears to be logging every player action for reasons I don't quite understand. I googled a bit but didn't find something.

Is there a way to stop minetest from cluttering up my syslog?

Ubuntu Server 20.04 LTS, minetest 5.2.0 stable compiled from source with mostly default options (added postgres support), there's no mention of minetest in /etc/rsyslog.d/

edit: some further digging in rsyslog and I changed the logging to warn
syslog.warn /var/log/syslog
in /etc/rsyslog.d/50-default.conf

kind of unexpected but hey it works.

User avatar
sfan5
Moderator
Posts: 3920
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

Re: [SOLVED] Minetest, Ubuntu server, and syslog

by sfan5 » Post

The debug_log_level applies to messages logged to the logfile you specified, the server additionally logs everything to stdout (or stderr?) too.
You can fix that by redirecting stdout or stderr to /dev/null when you start the process.
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
acidzebra
Member
Posts: 75
Joined: Sun Sep 10, 2017 09:11

Re: [SOLVED] Minetest, Ubuntu server, and syslog

by acidzebra » Post

sfan5 wrote:
Thu May 14, 2020 10:14
The debug_log_level applies to messages logged to the logfile you specified, the server additionally logs everything to stdout (or stderr?) too.
You can fix that by redirecting stdout or stderr to /dev/null when you start the process.
urgh *slaps head* of course, thank you.

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 3 guests