-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace mesecon.mergetable #533
Conversation
It can’t be removed yet as mods might depend on it.
5843e96
to
6a21b5a
Compare
Was this function documented somewhere? If it's an internal function, then replacing it would be fine. Otherwise output a deprecation warning so that modders fix it within the next two years (or so). I could grep through my mod collection to figure out whether it was used in any other mod. However, if it's documented it is definitely in some obscure mod, causing breakages. |
@SmallJoker The function wasn’t documented but undocumented functions are used from time to time (like
Is there a standard way to do that that won’t flood the log even if the function is used in a hot path? |
Uses of
No external uses.
So far I think it's only possible to log it once, or make use of local was_warned = false
...
if not was_warned then
minetest.log("deprecated", "Deprecated call to mesecon.mergetable .......")
was_warned = true
end Ironically, this "log level" isn't documented either... |
fb227eb
to
26274ed
Compare
I think plain logging should be OK. The function is to be removed so the warning should be prominent, and should point to the caller. Risk of flooding is minimal as there are no known uses at all. P.S. |
List of packages on ContentDB that have
|
Dreambuilder and Mesecon Node are mod/modpacks |
Each entry in the list except of Mesecon Node, be it a game or a modpack, contains a copy of Mesecons. |
Mesecon Node actually uses this function: https://github.com/Emojigit/mesecon_node/blob/87b180651507093316338cf96b8b2fe8779889b6/init.lua#L54 |
^ Notified the mod author. BTW is |
Renamed the function, hope that name is OK. |
Fix #483.
The two
mergetable
use cases were in fact unrelated, so now there are two functions. The originalmergetable
is now deprecated.So, are there any standard ways to track and report its uses?