summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/StreamManagement')
-rw-r--r--Swiften/StreamManagement/StanzaAckRequester.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Swiften/StreamManagement/StanzaAckRequester.cpp b/Swiften/StreamManagement/StanzaAckRequester.cpp
index 8e9e7f3..8941f4a 100644
--- a/Swiften/StreamManagement/StanzaAckRequester.cpp
+++ b/Swiften/StreamManagement/StanzaAckRequester.cpp
@@ -6,10 +6,9 @@
#include <Swiften/StreamManagement/StanzaAckRequester.h>
-#include <iostream>
-
#include <boost/numeric/conversion/cast.hpp>
+#include <Swiften/Base/Log.h>
#include <Swiften/Elements/Message.h>
namespace Swift {
@@ -31,7 +30,7 @@ void StanzaAckRequester::handleAckReceived(unsigned int handledStanzasCount) {
unsigned int i = lastHandledStanzasCount;
while (i != handledStanzasCount) {
if (unackedStanzas.empty()) {
- std::cerr << "Warning: Server acked more stanzas than we sent" << std::endl;
+ SWIFT_LOG(warning) << "Server acked more stanzas than we sent" << std::endl;
break;
}
std::shared_ptr<Stanza> ackedStanza = unackedStanzas.front();