Page 1 of 1

Logs flooded with deprecation notices

Posted: Mon Aug 20, 2018 01:08
by ratmix
My server log is flooded with hundreds of thousands of deprecation notices. Is there any way to turn these off?...

Code: Select all

2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...minetest_game/mods/mesecons-master/mesecons/settings.lua:13)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...minetest_game/mods/mesecons-master/mesecons/settings.lua:13)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...ame/mods/MoreMesecons-master/moremesecons_utils/init.lua:15)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...ame/mods/MoreMesecons-master/moremesecons_utils/init.lua:15)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...ame/mods/MoreMesecons-master/moremesecons_utils/init.lua:15)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...ame/mods/MoreMesecons-master/moremesecons_utils/init.lua:15)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...ame/mods/MoreMesecons-master/moremesecons_utils/init.lua:15)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...ame/mods/MoreMesecons-master/moremesecons_utils/init.lua:15)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...ame/mods/MoreMesecons-master/moremesecons_utils/init.lua:15)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...ame/mods/MoreMesecons-master/moremesecons_utils/init.lua:15)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...ame/mods/MoreMesecons-master/moremesecons_utils/init.lua:15)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...ame/mods/MoreMesecons-master/moremesecons_utils/init.lua:15)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:34: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:35: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:35: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:35: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:35: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:35: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:35: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:35: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)
2018-08-19 20:06:35: WARNING[Server]: WARNING: minetest.setting_* functions are deprecated.  Use methods on the minetest.settings object. (at ...etest/games/minetest_game/mods/minetest_hudbars/init.lua:553)

Re: Logs flooded with deprecation notices

Posted: Mon Aug 20, 2018 07:15
by TenPlus1
Click SETTINGS -> ADVANCED SETTINGS -> Search for 'log' and set debug_log_level to 'none' or blank

Re: Logs flooded with deprecation notices

Posted: Mon Aug 20, 2018 07:19
by Linuxdirk
TenPlus1 wrote:Click SETTINGS -> ADVANCED SETTINGS -> Search for 'log' and set debug_log_level to 'none' or blank
Or open issues on this so the mod authors fix their outdated code.

Re: Logs flooded with deprecation notices

Posted: Mon Aug 20, 2018 13:48
by Krock
The warnings are the least what bother me about this post.
Please. PLEASE move all additional mods (minetest_hudbars, mesecons) out of your game directory. These mods belong into ~/.minetest/mods/ (for system-wide installations), How to install mods correctly. Your future person will thank you a lot for doing this. Otherwise updating minetest_game becomes a pain, especially when it's not cloned with git.

EDIT regarding the actual warnings: Update the mods, then open an issue for the authors if the warnings persist.

Re: Logs flooded with deprecation notices

Posted: Mon Aug 20, 2018 22:04
by ratmix
TenPlus1 wrote:Click SETTINGS -> ADVANCED SETTINGS -> Search for 'log' and set debug_log_level to 'none' or blank
What is the equivalent on a headless server? Couldn't find a similar argument here: https://wiki.minetest.net/Command_line.

Also, it seems that Minetest should not spam the logs with the same deprecation message 10 times per second. This is an issue with Minetest, not the mod authors.

Re: Logs flooded with deprecation notices

Posted: Mon Aug 20, 2018 22:50
by Hamlet
ratmix wrote:
TenPlus1 wrote:Click SETTINGS -> ADVANCED SETTINGS -> Search for 'log' and set debug_log_level to 'none' or blank
What is the equivalent on a headless server? Couldn't find a similar argument here: https://wiki.minetest.net/Command_line.
minetest.conf.example (Minetest v0.4.17.1) at line 1778:
# Level of logging to be written to debug.txt:
# - <nothing> (no logging)
# - none (messages with no level)
# - error
# - warning
# - action
# - info
# - verbose
# type: enum values: , none, error, warning, action, info, verbose
# debug_log_level = action

Re: Logs flooded with deprecation notices

Posted: Tue Aug 21, 2018 01:05
by ratmix
Thanks @Hamlet