diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-08 11:46:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-08 11:46:33 +0000 |
commit | 73cf5c9693e93d5a48e0b1b3321539243bc10f10 (patch) | |
tree | 96aeea02bb16a5342685140ed4504af4e1117cd4 /src/lua/lua_config.c | |
parent | f7f1a793fa85f917ded8771d51bc50c49a895eb0 (diff) | |
download | rspamd-73cf5c9693e93d5a48e0b1b3321539243bc10f10.tar.gz rspamd-73cf5c9693e93d5a48e0b1b3321539243bc10f10.zip |
[Minor] Allow to set include trace on config load
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r-- | src/lua/lua_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 2ea72f075..a9b71baef 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -721,7 +721,7 @@ LUA_FUNCTION_DEF (config, has_torch); LUA_FUNCTION_DEF (config, experimental_enabled); /*** - * @method rspamd_config:load_ucl(filename) + * @method rspamd_config:load_ucl(filename[, include_trace]) * Loads config from the UCL file (but does not perform parsing using rcl) * @param {string} filename file to load * @return true or false + error message @@ -3705,7 +3705,7 @@ lua_config_load_ucl (lua_State *L) lua_pop (L, 1); - if (!rspamd_config_parse_ucl (cfg, filename, paths, &err)) { + if (!rspamd_config_parse_ucl (cfg, filename, paths, NULL, NULL, &err)) { lua_pushboolean (L, false); lua_pushfstring (L, "failed to load config: %s", err->message); g_error_free (err); |