diff options
author | louiz’ <louiz@louiz.org> | 2016-06-13 19:59:17 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-06-13 20:46:30 +0200 |
commit | 5a2e61161792cf51209f240e40e28036195f35be (patch) | |
tree | ed63eff92b075117e8f16e8644d715c4ca0fd132 /louloulibs/xmpp/xmpp_parser.cpp | |
parent | ad4ccdbbea129cfbab89773bea040d4149afcb2d (diff) | |
download | biboumi-5a2e61161792cf51209f240e40e28036195f35be.tar.gz biboumi-5a2e61161792cf51209f240e40e28036195f35be.tar.bz2 biboumi-5a2e61161792cf51209f240e40e28036195f35be.tar.xz biboumi-5a2e61161792cf51209f240e40e28036195f35be.zip |
Show off, with some variadic templates, for the logger module
Diffstat (limited to 'louloulibs/xmpp/xmpp_parser.cpp')
-rw-r--r-- | louloulibs/xmpp/xmpp_parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/louloulibs/xmpp/xmpp_parser.cpp b/louloulibs/xmpp/xmpp_parser.cpp index dc12000..0488be9 100644 --- a/louloulibs/xmpp/xmpp_parser.cpp +++ b/louloulibs/xmpp/xmpp_parser.cpp @@ -56,7 +56,7 @@ int XmppParser::feed(const char* data, const int len, const bool is_final) int res = XML_Parse(this->parser, data, len, is_final); if (res == XML_STATUS_ERROR && (XML_GetErrorCode(this->parser) != XML_ERROR_FINISHED)) - log_error("Xml_Parse encountered an error: " << + log_error("Xml_Parse encountered an error: ", XML_ErrorString(XML_GetErrorCode(this->parser))); return res; } @@ -65,7 +65,7 @@ int XmppParser::parse(const int len, const bool is_final) { int res = XML_ParseBuffer(this->parser, len, is_final); if (res == XML_STATUS_ERROR) - log_error("Xml_Parsebuffer encountered an error: " << + log_error("Xml_Parsebuffer encountered an error: ", XML_ErrorString(XML_GetErrorCode(this->parser))); return res; } @@ -139,7 +139,7 @@ void XmppParser::stanza_event(const Stanza& stanza) const try { callback(stanza); } catch (const std::exception& e) { - log_error("Unhandled exception: " << e.what()); + log_error("Unhandled exception: ", e.what()); } } } |