aboutsummaryrefslogtreecommitdiffstats
path: root/util/async.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-03-19 11:51:40 +0000
committerMatthew Wild <mwild1@gmail.com>2018-03-19 11:51:40 +0000
commitdd23605ae823f852a960f29dffc6b98cedba2f3d (patch)
treee2d96c29440b20400c0877eae07b6f8c4f1b0652 /util/async.lua
parentb539a1019ffa8e8a7212a47393dd69a63d397887 (diff)
downloadprosody-dd23605ae823f852a960f29dffc6b98cedba2f3d.tar.gz
prosody-dd23605ae823f852a960f29dffc6b98cedba2f3d.zip
util.async: Bump log warnings to error level
Diffstat (limited to 'util/async.lua')
-rw-r--r--util/async.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/async.lua b/util/async.lua
index 4deb4295..374a3bdf 100644
--- a/util/async.lua
+++ b/util/async.lua
@@ -37,7 +37,7 @@ end
local function runner_continue(thread)
-- ASSUMPTION: runner is in 'waiting' state (but we don't have the runner to know for sure)
if coroutine.status(thread) ~= "suspended" then -- This should suffice
- log("warn", "unexpected async state: thread not suspended");
+ log("error", "unexpected async state: thread not suspended");
return false;
end
local ok, state, runner = coroutine.resume(thread);
@@ -47,7 +47,7 @@ local function runner_continue(thread)
-- in order to inform the error handler
runner = runner_from_thread(thread);
if not runner then
- log("warn", "unexpected async state: unable to locate runner during error handling");
+ log("error", "unexpected async state: unable to locate runner during error handling");
return false;
end
call_watcher(runner, "error", debug.traceback(thread, err));