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:
parent
31e25dc6a5
commit
68497dffc4
|
@ -64,13 +64,13 @@ end
|
||||||
--- Print an warning message
|
--- Print an warning message
|
||||||
-- @tparam string message The warning message to print
|
-- @tparam string message The warning message to print
|
||||||
function debug.print_warning(message)
|
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
|
end
|
||||||
|
|
||||||
--- Print an error message
|
--- Print an error message
|
||||||
-- @tparam string message The error message to print
|
-- @tparam string message The error message to print
|
||||||
function debug.print_error(message)
|
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
|
end
|
||||||
|
|
||||||
local displayed_deprecations = {}
|
local displayed_deprecations = {}
|
||||||
|
|
Loading…
Reference in New Issue