mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-05 18:41:05 +00:00
DevTest: Move more logging to log mod
This commit is contained in:
parent
48530ccbc0
commit
3a7fffc587
4 changed files with 15 additions and 9 deletions
|
@ -1,3 +1,16 @@
|
|||
minetest.register_on_chatcommand(function(name, command, params)
|
||||
minetest.log("action", "[devtest] Caught command '"..command.."', issued by '"..name.."'. Parameters: '"..params.."'")
|
||||
local modname = minetest.get_current_modname()
|
||||
local prefix = "["..modname.."] "
|
||||
|
||||
-- Startup info
|
||||
minetest.log("action", prefix.."modname="..dump(modname))
|
||||
minetest.log("action", prefix.."modpath="..dump(minetest.get_modpath(modname)))
|
||||
minetest.log("action", prefix.."worldpath="..dump(minetest.get_worldpath()))
|
||||
|
||||
-- Callback info
|
||||
minetest.register_on_mods_loaded(function()
|
||||
minetest.log("action", prefix.."Callback: on_mods_loaded()")
|
||||
end)
|
||||
|
||||
minetest.register_on_chatcommand(function(name, command, params)
|
||||
minetest.log("action", prefix.."Caught command '"..command.."', issued by '"..name.."'. Parameters: '"..params.."'")
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue