Automates keeping logfile at a managable size by archiving (tar format) the logfire in the same folder and creating a new debug.txt on shutdown when the file reaches about 30MB.
Requirements
This mod was developed/tested on Debian 8. may need some tweaking to work on other operating systems.
Nice idea! Useful for moderators and players who want to help the owner with his problem.
Instead of ban priv use for the debug and the grep command maybe the debug priv. (I'm not sure if you already have that priv in your mt version, use the minetest ppa ppa:minetestdevs/stable or ppa:minetestdevs/daily-builds.)
Why not use the param of the debug chatcommand for the count of the lines to chat out instead of hardcoding it to 100? And maybe also add a second param for the start of the lines instead of 0 (hint: minetest has a string.split function).
Could you please chat the lines all at once instead of using minetest.chat_send_player once per line? And add a prefix like "debug:debug_output lines:0-100". That would be very useful for a csm that prints out the debug stuff instead of letting it into the chat.
DS-minetest wrote:Nice idea! Useful for moderators and players who want to help the owner with his problem.
Instead of ban priv use for the debug and the grep command maybe the debug priv. (I'm not sure if you already have that priv in your mt version, use the minetest ppa ppa:minetestdevs/stable or ppa:minetestdevs/daily-builds.)
Why not use the param of the debug chatcommand for the count of the lines to chat out instead of hardcoding it to 100? And maybe also add a second param for the start of the lines instead of 0 (hint: minetest has a string.split function).
Could you please chat the lines all at once instead of using minetest.chat_send_player once per line? And add a prefix like "debug:debug_output lines:0-100". That would be very useful for a csm that prints out the debug stuff instead of letting it into the chat.
Some good suggestions. I just wrote this as a quick test of concept for a friend but if there is interest I'll continue to develop it with more nuance. Thanks for the feedback..