From: Michael Friedrich Date: Tue, 9 Oct 2018 10:55:53 +0000 (+0200) Subject: Enable the HTTP request body debug log entry for release builds X-Git-Tag: v2.10.0~9^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F6657%2Fhead;p=icinga2 Enable the HTTP request body debug log entry for release builds fixes #4282 --- diff --git a/lib/remote/httputility.cpp b/lib/remote/httputility.cpp index 2788a03b2..1647c46aa 100644 --- a/lib/remote/httputility.cpp +++ b/lib/remote/httputility.cpp @@ -35,10 +35,9 @@ Dictionary::Ptr HttpUtility::FetchRequestParameters(HttpRequest& request) body += String(buffer, buffer + count); if (!body.IsEmpty()) { -#ifdef I2_DEBUG Log(LogDebug, "HttpUtility") << "Request body: '" << body << "'"; -#endif /* I2_DEBUG */ + result = JsonDecode(body); }