Improve log messages (#422)

- Add log messages wherever required/useful
- Remove unnecessary log messages and print statements
- Convert print statements to minetest.log
- Fix incorrect log level for some messages
- Trivial code-style fixes
This commit is contained in:
ANAND 2019-10-18 11:22:18 +05:30 committed by GitHub
parent 21e7daa183
commit 5eb5d3311a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 71 additions and 49 deletions

View file

@ -99,6 +99,7 @@ ctf.register_on_killedplayer(function(victim, killer)
bountied_player = nil
local msg = killer .. " has killed " .. victim .. " and received the prize!"
minetest.log("action", msg)
minetest.chat_send_all(msg)
hud_score.new(killer, {
name = "ctf_bounty:prize",
@ -118,6 +119,7 @@ minetest.register_chatcommand("place_bounty", {
end
bounty_player(target)
minetest.log("action", name .. " places bounty on " .. target)
return true, "Put bounty on " .. target
end
})