From c012c294eba9c6cf1fd8a921c00affad65de2256 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 13 Aug 2018 11:22:49 +0100 Subject: [Minor] Log bad output if proxied connection returns garbadge --- src/rspamd_proxy.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/rspamd_proxy.c') diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 4af5ee5f4..276e304b9 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -917,9 +917,14 @@ proxy_backend_parse_results (struct rspamd_proxy_session *session, parser = ucl_parser_new (0); if (!ucl_parser_add_chunk (parser, in, inlen)) { + gchar *encoded; + + encoded = rspamd_encode_base64 (in, inlen, 0, NULL); msg_err_session ("cannot parse input: %s", ucl_parser_get_error ( parser)); + msg_err_session ("input encoded: %s", encoded); ucl_parser_free (parser); + g_free (encoded); return FALSE; } -- cgit v1.2.3