From: Vsevolod Stakhov Date: Mon, 17 Jul 2023 20:05:33 +0000 (+0100) Subject: [Minor] Remove assertion in lieu of a log message X-Git-Tag: 3.6~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=51c73b5ace58811b68ad89855160415fa7dbc07b;p=rspamd.git [Minor] Remove assertion in lieu of a log message Issue: #4533 Closes: #4533 --- diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 680203c1e..e24fb3e7e 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1274,7 +1274,10 @@ lua_metric_symbol_callback (struct rspamd_task *task, res = FALSE; } else { - g_assert_not_reached (); + /* Something bogus has been returned, so we should log it */ + msg_err_task ("invalid return value for %s: %s", + cd->symbol, lua_typename (L, type)); + res = FALSE; } if (res) {