summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser/IQParser.cpp')
-rw-r--r--Swiften/Parser/IQParser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/Parser/IQParser.cpp b/Swiften/Parser/IQParser.cpp
index 573ce07..5cfae34 100644
--- a/Swiften/Parser/IQParser.cpp
+++ b/Swiften/Parser/IQParser.cpp
@@ -6,10 +6,10 @@
#include <Swiften/Parser/IQParser.h>
-#include <iostream>
-
#include <boost/optional.hpp>
+#include <Swiften/Base/Log.h>
+
namespace Swift {
IQParser::IQParser(PayloadParserFactoryCollection* factories) :
@@ -32,7 +32,7 @@ void IQParser::handleStanzaAttributes(const AttributeMap& attributes) {
getStanzaGeneric()->setType(IQ::Error);
}
else {
- std::cerr << "Unknown IQ type: " << *type << std::endl;
+ SWIFT_LOG(warning) << "Unknown IQ type: " << *type << std::endl;
getStanzaGeneric()->setType(IQ::Get);
}
}