mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in a new issue