From 68497dffc457af013f4860cab0be64f6231a754e Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 10 Aug 2017 14:08:32 +0200 Subject: [PATCH] gears.debug.print_{warning_error}: add "awesome: " prefix (#1968) This makes it consistent with the C functions (`_warn` and `_fatal`). --- lib/gears/debug.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gears/debug.lua b/lib/gears/debug.lua index fb4d03e53..fe5e934d7 100644 --- a/lib/gears/debug.lua +++ b/lib/gears/debug.lua @@ -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 = {}