# HG changeset patch # User Matthew Wild # Date 1521460300 0 # Node ID ddb04cacb8b1c3698f8c7cdb4fca963fa1a00152 # Parent e88744fa09859711f603a41733c16137832014d6 util.async: Bump log warnings to error level diff -r e88744fa0985 -r ddb04cacb8b1 util/async.lua --- a/util/async.lua Sun Mar 18 22:43:06 2018 +0000 +++ b/util/async.lua Mon Mar 19 11:51:40 2018 +0000 @@ -37,7 +37,7 @@ 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 @@ -- 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));