commit 51c73b5: [Minor] Remove assertion in lieu of a log message
Vsevolod Stakhov
vsevolod at rspamd.com
Mon Jul 17 20:14:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-07-17 21:05:33 +0100
URL: https://github.com/rspamd/rspamd/commit/51c73b5ace58811b68ad89855160415fa7dbc07b (HEAD -> master)
[Minor] Remove assertion in lieu of a log message
Issue: #4533
Closes: #4533
---
src/lua/lua_config.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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) {
More information about the Commits
mailing list