From: Kyle Fuller Date: Fri, 4 Sep 2015 02:09:10 +0000 (-0700) Subject: Log success/failure of HTTP requests X-Git-Tag: 1.0.0~3 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=61d3fed58c207a27b00c4c7e04819182b170c83d;p=znc-palaver.git Log success/failure of HTTP requests --- diff --git a/palaver.cpp b/palaver.cpp index 8201158..b71f57e 100644 --- a/palaver.cpp +++ b/palaver.cpp @@ -143,6 +143,8 @@ public: if (uStatus < 200 || uStatus > 299) { DEBUG("Palaver: Received HTTP Response code: " << uStatus); + } else { + DEBUG("Palaver: Successfully send notification ('" << uStatus << "')"); } m_eState = Headers; @@ -171,6 +173,18 @@ public: Close(CSocket::CLT_AFTERWRITE); } + void Timeout() { + DEBUG("Palaver: HTTP Request timed out '" << m_sHostname << "'"); + } + + void ConnectionRefused() { + DEBUG("Palaver: Connection refused to '" << m_sHostname << "'"); + } + + virtual void SockError(int iErrno, const CString &sDescription) { + DEBUG("Palaver: HTTP Request failed '" << m_sHostname << "' - " << sDescription); + } + virtual bool SNIConfigureClient(CS_STRING &sHostname) { sHostname = m_sHostname; return true;