}
if (map->backends->len == 0) {
- msg_err_config ("map has no urls to be loaded");
+ msg_err_config ("map has no urls to be loaded: empty list");
goto err;
}
}
elt = ucl_object_lookup_any (obj, "upstreams", "url", "urls", NULL);
if (elt == NULL) {
- msg_err_config ("map has no urls to be loaded");
+ msg_err_config ("map has no urls to be loaded: no elt");
goto err;
}
- if (ucl_object_type (obj) == UCL_ARRAY) {
+ if (ucl_object_type (elt) == UCL_ARRAY) {
/* Add array of maps as multiple backends */
while ((cur = ucl_object_iterate (elt, &it, true)) != NULL) {
if (ucl_object_type (cur) == UCL_STRING) {
}
if (map->backends->len == 0) {
- msg_err_config ("map has no urls to be loaded");
+ msg_err_config ("map has no urls to be loaded: empty object list");
goto err;
}
}
}
if (map->backends->len == 0) {
- msg_err_config ("map has no urls to be loaded");
+ msg_err_config ("map has no urls to be loaded: no valid backends");
goto err;
}
}
rspamd_config:register_dependency(id, settings['symbol_dkim_allow'])
else
- rspamd_logger.infox(rspamd_config, 'url is not specified, disabling module')
+ rspamd_logger.infox(rspamd_config, 'source is not specified, disabling module')
end
end