diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-17 21:05:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-17 21:06:35 +0100 |
commit | 51c73b5ace58811b68ad89855160415fa7dbc07b (patch) | |
tree | 2fc962f173c89b01478d9cb6b1f04e9f1acff50a /src/lua | |
parent | 6e764e58cee3aa3fb0f404a914aea88a389fac96 (diff) | |
download | rspamd-51c73b5ace58811b68ad89855160415fa7dbc07b.tar.gz rspamd-51c73b5ace58811b68ad89855160415fa7dbc07b.zip |
[Minor] Remove assertion in lieu of a log message
Issue: #4533
Closes: #4533
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_config.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |