Turned all boot messages into clean minetest.log() calls

- Turned all the 'print' calls at server's boot to 'minetest.log' in order to
   render it more clearly
This commit is contained in:
LeMagnesium 2015-05-24 10:50:22 +02:00
parent 3f10102866
commit 6b9b127804
31 changed files with 41 additions and 41 deletions

View File

@ -133,5 +133,5 @@ dofile(minetest.get_modpath("coloredwood").."/wood.lua")
dofile(minetest.get_modpath("coloredwood").."/fence.lua")
dofile(minetest.get_modpath("coloredwood").."/stick.lua")
print("[Colored Wood] Loaded!")
minetest.log("action", "[Colored Wood] Loaded!")

View File

@ -75,4 +75,4 @@ minetest.register_alias("dye:dark_blue","dye:blue")
minetest.register_alias("dye:dark_pink","dye:magenta")
minetest.register_alias("dye:purple","dye:violet")
print ("Coloured Stone Bricks [colouredstonebricks] has loaded!")
minetest.log ("action", "Coloured Stone Bricks [colouredstonebricks] has loaded!")

View File

@ -61,7 +61,7 @@ local default_bookmark = {}
local backwardscompatsave = "NO"
print(S("compassgps reading bookmarks"))
minetest.log("action", S("compassgps reading bookmarks"))
local file = io.open(minetest.get_worldpath().."/bookmarks", "r")
if file then
bookmarks = minetest.deserialize(file:read("*all"))
@ -127,7 +127,7 @@ end --distance3d
-- **********************************************************
print(S("compassgps reading settings"))
minetest.log("action", S("compassgps reading settings"))
if minetest.is_singleplayer() and show_shared_on_singleplayer==false then
singleplayer=true
else

View File

@ -13,4 +13,4 @@ dofile(minetest.get_modpath("darkage").."/aliases.lua")
-- Config
--
print ("Darkage [darkage] has loaded!")
minetest.log ("Darkage [darkage] has loaded!")

View File

@ -123,5 +123,5 @@ else
end
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------

View File

@ -531,5 +531,5 @@ else
end
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------

View File

@ -6,7 +6,7 @@
-- Some basic foods
-- =====================================
print("Food Mod - Version 2.3")
minetest.log("action", "Food Mod - Version 2.3")
dofile(minetest.get_modpath("food_basic").."/support.lua")
dofile(minetest.get_modpath("food_basic").."/ingredients.lua")

View File

@ -170,4 +170,4 @@ dofile(homedecor.modpath.."/handlers/locked.lua")
dofile(homedecor.modpath.."/crafts.lua")
print("[HomeDecor] "..S("Loaded!"))
minetest.log("action", "[HomeDecor] "..S("Loaded!"))

View File

@ -634,7 +634,7 @@ function signs_lib.determine_sign_type(itemstack, placer, pointed_thing, locked)
local fdir = minetest.dir_to_facedir(dir)
local pt_name = minetest.get_node(under).name
print(dump(pt_name))
minetest.log("action", dump(pt_name))
local signname = itemstack:get_name()
if fences_with_sign[pt_name] and signname == "default:sign_wall" then
@ -981,7 +981,7 @@ function signs_lib.register_fence_with_sign(fencename, fencewithsignname)
minetest.register_node(":"..fencename, def)
minetest.register_node(":"..fencewithsignname, def_sign)
table.insert(signs_lib.sign_node_list, fencewithsignname)
print(S("Registered %s and %s"):format(fencename, fencewithsignname))
minetest.log("action", S("Registered %s and %s"):format(fencename, fencewithsignname))
end
build_char_db()

View File

@ -173,7 +173,7 @@ do
local savetable = minetest.deserialize(string)
mana.playerlist = savetable.playerlist
if mana.playerlist == nil then mana.playerlist = {} end
minetest.debug("[mana] mana.mt successfully read.")
minetest.log("action", "[mana] mana.mt successfully read.")
end
end
end

View File

@ -126,7 +126,7 @@ function mesecon.receptor_off(pos, rules)
end
print("[OK] Mesecons")
minetest.log("action", "[OK] Mesecons")
-- Deprecated stuff
-- To be removed in future releases

View File

@ -301,4 +301,4 @@ function moretrees:grow_fir_snow(pos)
minetest.spawn_tree(pos,moretrees.fir_model)
end
print(S("[Moretrees] Loaded (2013-02-11)"))
minetest.log("action", S("[Moretrees] Loaded (2013-02-11)"))

View File

@ -98,7 +98,7 @@ if nether.info then
else
info = "[nether] "..msg
end
print(info)
minetest.log("action", info)
if self.inform_all then
minetest.chat_send_all(info)
end

View File

@ -111,5 +111,5 @@ if pipeworks.enable_autocrafter then dofile(pipeworks.modpath.."/autocrafter.lua
minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty")
print("Pipeworks loaded!")
minetest.log("Pipeworks loaded!")

View File

@ -5,5 +5,5 @@ local mname = "along_shore"
-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------

View File

@ -55,4 +55,4 @@ plantslib:spawn_on_surfaces({
minetest.register_alias("bushes:basket_pies", "bushes:basket_strawberry")
print(S("[Bushes] Loaded."))
minetest.log("action", S("[Bushes] Loaded."))

View File

@ -9,4 +9,4 @@ dofile(minetest.get_modpath("cavestuff").."/mapgen.lua")
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")

View File

@ -195,5 +195,5 @@ minetest.register_abm({
})
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------

View File

@ -43,20 +43,20 @@ if run_tests then
-- Check node names
if abstract_ferns.config.enable_horsetails then
print("[Mod] " ..title.. " Checking horsetail item strings")
minetest.log("action", "[Mod] " ..title.. " Checking horsetail item strings")
assert(minetest.registered_items["ferns:horsetail_01"] ~= nil)
assert(minetest.registered_items["ferns:horsetail_02"] ~= nil)
assert(minetest.registered_items["ferns:horsetail_03"] ~= nil)
assert(minetest.registered_items["ferns:horsetail_04"] ~= nil)
end
if abstract_ferns.config.enable_lady_fern then
print("[Mod] ".. title .." Checking lady fern item strings")
minetest.log("action", "[Mod] ".. title .." Checking lady fern item strings")
assert(minetest.registered_items["ferns:fern_01"] ~= nil)
assert(minetest.registered_items["ferns:fern_02"] ~= nil)
assert(minetest.registered_items["ferns:fern_03"] ~= nil)
end
if abstract_ferns.config.enable_treefern then
print("[Mod] ".. title .." Checking tree fern item strings")
minetest.log("action", "[Mod] ".. title .." Checking tree fern item strings")
assert(minetest.registered_items["ferns:tree_fern_leaves"] ~= nil)
assert(minetest.registered_items["ferns:tree_fern_leaves_02"] ~= nil)
assert(minetest.registered_items["ferns:fern_trunk"] ~= nil)
@ -65,5 +65,5 @@ if run_tests then
end
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------

View File

@ -535,4 +535,4 @@ minetest.register_alias("flowers:cotton", "farming:string")
minetest.register_alias("flowers:cotton_wad", "farming:string")
minetest.register_alias("sunflower:sunflower", "flowers:sunflower")
print(S("[Flowers] Loaded."))
minetest.log("action", S("[Flowers] Loaded."))

View File

@ -106,5 +106,5 @@ plantslib:register_generate_plant({
)
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------

View File

@ -258,4 +258,4 @@ minetest.register_abm({
dofile(minetest.get_modpath("mushroom").."/crafting.lua")
dofile(minetest.get_modpath("mushroom").."/compat.lua")
print("[Mushrooms] loaded.")
minetest.log("action", "[Mushrooms] loaded.")

View File

@ -726,10 +726,10 @@ function plantslib:get_nodedef_field(nodename, fieldname)
return minetest.registered_nodes[nodename][fieldname]
end
print("[Plants Lib] Loaded")
minetest.log("action", "[Plants Lib] Loaded")
minetest.after(0, function()
print("[Plants Lib] Registered a total of "..(#plantslib.surfaceslist_aircheck)+(#plantslib.surfaceslist_no_aircheck).." surface types to be evaluated, spread")
print("[Plants Lib] across "..#plantslib.actionslist_aircheck.." actions with air-checking and "..#plantslib.actionslist_no_aircheck.." actions without.")
minetest.log("action", "[Plants Lib] Registered a total of "..(#plantslib.surfaceslist_aircheck)+(#plantslib.surfaceslist_no_aircheck).." surface types to be evaluated, spread")
minetest.log("action", "[Plants Lib] across "..#plantslib.actionslist_aircheck.." actions with air-checking and "..#plantslib.actionslist_no_aircheck.." actions without.")
end)

View File

@ -100,4 +100,4 @@ plantslib:grow_plants({
ground_nodes = {"default:dirt_with_grass"}
})
print(S("[Poison Ivy] Loaded."))
minetest.log("action", S("[Poison Ivy] Loaded."))

View File

@ -13,5 +13,5 @@ dofile(minetest.get_modpath("trunks").."/nodes.lua")
dofile(minetest.get_modpath("trunks").."/crafting.lua")
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------

View File

@ -11,4 +11,4 @@ dofile( minetest.get_modpath( vines.name ) .. "/nodes.lua" )
dofile( minetest.get_modpath( vines.name ) .. "/shear.lua" )
dofile( minetest.get_modpath( vines.name ) .. "/vines.lua" )
print("[Vines] Loaded!")
minetest.log("action", "[Vines] Loaded!")

View File

@ -25,5 +25,5 @@ print("/____ >____/|__|____/____ >")
print(" \\/ \\/")]]
-----------------------------------------------------------------------------------------------
print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------
minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...")
-----------------------------------------------------------------------------------------------

View File

@ -7,7 +7,7 @@ if riesenpilz.info then
else
info = "[riesenpilz] "..msg
end
print(info)
minetest.log("action", info)
if riesenpilz.inform_all then
minetest.chat_send_all(info)
end

View File

@ -289,7 +289,7 @@ for h = 1, 12 do
end --hues
print("[stained_glass] Loaded!")
minetest.log("action", "[stained_glass] Loaded!")

View File

@ -27,7 +27,7 @@ minetest.after(0.01, function()
end
table.sort(unified_inventory.items_list)
unified_inventory.items_list_size = #unified_inventory.items_list
print("Unified Inventory. inventory size: "..unified_inventory.items_list_size)
minetest.log("Unified Inventory. inventory size: "..unified_inventory.items_list_size)
for _, name in ipairs(unified_inventory.items_list) do
local def = minetest.registered_items[name]
if type(def.drop) == "string" then

View File

@ -373,5 +373,5 @@ minetest.register_alias("unifieddyes:grey_paint", "dye:grey")
minetest.register_alias("unifieddyes:darkgrey_paint", "dye:dark_grey")
minetest.register_alias("unifieddyes:carbon_black", "dye:black")
print(S("[UnifiedDyes] Loaded!"))
minetest.log("action", S("[UnifiedDyes] Loaded!"))