Logs flooded with deprecation notices

Post Reply
User avatar
ratmix
Member
Posts: 149
Joined: Mon May 01, 2017 19:45
In-game: ratmix
Contact:

Logs flooded with deprecation notices

by ratmix » Post

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)
King of the Hill :: Modern Warfare Server RATMIX.COM:30000 | King of the Hill Community Site

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: Logs flooded with deprecation notices

by TenPlus1 » Post

Click SETTINGS -> ADVANCED SETTINGS -> Search for 'log' and set debug_log_level to 'none' or blank

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: Logs flooded with deprecation notices

by Linuxdirk » Post

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.

User avatar
Krock
Developer
Posts: 4649
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: Logs flooded with deprecation notices

by Krock » Post

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.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
ratmix
Member
Posts: 149
Joined: Mon May 01, 2017 19:45
In-game: ratmix
Contact:

Re: Logs flooded with deprecation notices

by ratmix » Post

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.
King of the Hill :: Modern Warfare Server RATMIX.COM:30000 | King of the Hill Community Site

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: Logs flooded with deprecation notices

by Hamlet » Post

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
My repositories: Codeberg.org | My ContentDB's page

User avatar
ratmix
Member
Posts: 149
Joined: Mon May 01, 2017 19:45
In-game: ratmix
Contact:

Re: Logs flooded with deprecation notices

by ratmix » Post

Thanks @Hamlet
King of the Hill :: Modern Warfare Server RATMIX.COM:30000 | King of the Hill Community Site

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests