struct http_proxy_ctx *ctx;
GQuark type;
- type = g_quark_try_string ("http-proxy");
+ type = g_quark_try_string ("http_proxy");
ctx = g_malloc0 (sizeof (struct http_proxy_ctx));
ctx->timeout = 5.0;
}
if (!rspamd_rcl_parse (top, cfg, cfg->cfg_pool, cfg->rcl_obj, &err)) {
- msg_err ("rcl parse error: %s", err->message);
+ msg_err ("rcl parse error: %e", err);
+ g_error_free (err);
return FALSE;
}
"ir",
&err);
if (re == NULL) {
- msg_warn ("could not read regexp: %s while reading regexp %s",
- err->message,
+ msg_warn ("could not read regexp: %e while reading regexp %s",
+ err,
p);
g_error_free (err);
re = NO_REGEXP;
}
else if (err != NULL && err->code != WHITELIST_ERROR && err->code !=
DUPLICATE_ERROR) {
- msg_info ("cannot format url string for surbl %s, %s", struri (
- url), err->message);
+ msg_info ("cannot format url string for surbl %s, %e", struri (
+ url), err);
g_error_free (err);
return;
}
{
struct redirector_param *param = (struct redirector_param *)conn->ud;
- msg_err ("connection with http server %s terminated incorrectly: %s",
+ msg_err ("connection with http server %s terminated incorrectly: %e",
rspamd_inet_address_to_string (rspamd_upstream_addr (param->redirector)),
- err->message);
+ err);
rspamd_upstream_fail (param->redirector);
remove_normal_event (param->task->s, free_redirector_session,
param);
{
struct rspamd_task *task = (struct rspamd_task *) conn->ud;
- msg_info ("abnormally closing connection from: %s, error: %s",
- rspamd_inet_address_to_string (task->client_addr), err->message);
+ msg_info ("abnormally closing connection from: %s, error: %e",
+ rspamd_inet_address_to_string (task->client_addr), err);
/* Terminate session immediately */
destroy_session (task->s);
}
TRUE,
&err);
if (err != NULL) {
- msg_err ("pool create failed: %s", err->message);
+ msg_err ("pool create failed: %e", err);
+ g_error_free (err);
ctx->classify_pool = NULL;
}
}