diff options
Diffstat (limited to 'Swiften/Component/ComponentSessionStanzaChannel.cpp')
-rw-r--r-- | Swiften/Component/ComponentSessionStanzaChannel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/Component/ComponentSessionStanzaChannel.cpp b/Swiften/Component/ComponentSessionStanzaChannel.cpp index 282d9f1..fd61594 100644 --- a/Swiften/Component/ComponentSessionStanzaChannel.cpp +++ b/Swiften/Component/ComponentSessionStanzaChannel.cpp @@ -6,10 +6,10 @@ #include <Swiften/Component/ComponentSessionStanzaChannel.h> -#include <iostream> - #include <boost/bind.hpp> +#include <Swiften/Base/Log.h> + namespace Swift { void ComponentSessionStanzaChannel::setSession(std::shared_ptr<ComponentSession> session) { @@ -38,7 +38,7 @@ std::string ComponentSessionStanzaChannel::getNewIQID() { void ComponentSessionStanzaChannel::send(std::shared_ptr<Stanza> stanza) { if (!isAvailable()) { - std::cerr << "Warning: Component: Trying to send a stanza while disconnected." << std::endl; + SWIFT_LOG(warning) << "Component: Trying to send a stanza while disconnected." << std::endl; return; } session->sendStanza(stanza); |