]> granicus.if.org Git - icinga2/commitdiff
Remove debug messages in HttpRequest class
authorMichael Friedrich <michael.friedrich@netways.de>
Fri, 21 Aug 2015 12:44:31 +0000 (14:44 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Fri, 21 Aug 2015 12:46:18 +0000 (14:46 +0200)
fixes #9946

lib/remote/httprequest.cpp

index 5ebde7ec9eb6c001db5925ba93ee94406321ec08..49bee4af5dd7706f14595f2a13cf805e5b8853cc 100644 (file)
@@ -51,7 +51,7 @@ bool HttpRequest::Parse(const Stream::Ptr& stream, StreamReadContext& src, bool
 
                        std::vector<String> tokens;
                        boost::algorithm::split(tokens, line, boost::is_any_of(" "));
-                       Log(LogWarning, "HttpRequest")
+                       Log(LogDebug, "HttpRequest")
                            << "line: " << line << ", tokens: " << tokens.size();
                        if (tokens.size() != 3)
                                BOOST_THROW_EXCEPTION(std::invalid_argument("Invalid HTTP request"));
@@ -66,8 +66,6 @@ bool HttpRequest::Parse(const Stream::Ptr& stream, StreamReadContext& src, bool
                                BOOST_THROW_EXCEPTION(std::invalid_argument("Unsupported HTTP version"));
 
                        m_State = HttpRequestHeaders;
-                       Log(LogWarning, "HttpRequest")
-                           << "Method: " << RequestMethod << ", Url: " << RequestUrl;
                } else if (m_State == HttpRequestHeaders) {
                        if (line == "") {
                                m_State = HttpRequestBody;
@@ -78,7 +76,6 @@ bool HttpRequest::Parse(const Stream::Ptr& stream, StreamReadContext& src, bool
                                else
                                        m_Body = new FIFO();
 
-                               Log(LogWarning, "HttpRequest", "Waiting for message body");
                                return true;
 
                        } else {