gears.debug.print_{warning_error}: add "awesome: " prefix (#1968)

This makes it consistent with the C functions (`_warn` and `_fatal`).
This commit is contained in:
Daniel Hahler 2017-08-10 14:08:32 +02:00 committed by GitHub
parent 31e25dc6a5
commit 68497dffc4

View file

@ -64,13 +64,13 @@ end
--- Print an warning message
-- @tparam string message The warning message to print
function debug.print_warning(message)
io.stderr:write(os.date("%Y-%m-%d %T W: ") .. tostring(message) .. "\n")
io.stderr:write(os.date("%Y-%m-%d %T W: awesome: ") .. tostring(message) .. "\n")
end
--- Print an error message
-- @tparam string message The error message to print
function debug.print_error(message)
io.stderr:write(os.date("%Y-%m-%d %T E: ") .. tostring(message) .. "\n")
io.stderr:write(os.date("%Y-%m-%d %T E: awesome: ") .. tostring(message) .. "\n")
end
local displayed_deprecations = {}