]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lua: Log an error when lua deinit function failed
authorJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Thu, 17 Dec 2020 14:21:38 +0000 (09:21 -0500)
committerjeff.sipek <jeff.sipek@open-xchange.com>
Mon, 11 Jan 2021 16:36:23 +0000 (16:36 +0000)
src/lib-lua/dlua-script.c

index b4736918195b2e066b25a5a48ac2d13277c47478..42faec6a19866109f7cdeb7d4f8d90bad4fb6d7f 100644 (file)
@@ -147,8 +147,8 @@ static void dlua_call_deinit_function(struct dlua_script *script)
        if (lua_isfunction(script->L, -1)) {
                ret = lua_pcall(script->L, 0, 0, 0);
                if (ret != 0) {
-                       i_warning("lua_pcall(%s) failed: %s", func_name,
-                                 lua_tostring(script->L, -1));
+                       i_error("lua_pcall(%s) failed: %s", func_name,
+                               lua_tostring(script->L, -1));
                        lua_pop(script->L, 1);
                }
        } else {