diff options
Diffstat (limited to 'Swiften/Network/ChainedConnector.cpp')
-rw-r--r-- | Swiften/Network/ChainedConnector.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Swiften/Network/ChainedConnector.cpp b/Swiften/Network/ChainedConnector.cpp index e08ffc6..1a38e53 100644 --- a/Swiften/Network/ChainedConnector.cpp +++ b/Swiften/Network/ChainedConnector.cpp @@ -7,10 +7,12 @@ #include <Swiften/Network/ChainedConnector.h> #include <boost/bind.hpp> +#include <typeinfo> #include <Swiften/Base/Log.h> #include <Swiften/Base/foreach.h> #include <Swiften/Network/Connector.h> +#include <Swiften/Network/ConnectionFactory.h> using namespace Swift; @@ -47,7 +49,6 @@ void ChainedConnector::stop() { } void ChainedConnector::tryNextConnectionFactory() { - SWIFT_LOG(debug) << "Trying next connection factory" << std::endl; assert(!currentConnector); if (connectionFactoryQueue.empty()) { SWIFT_LOG(debug) << "No more connection factories" << std::endl; @@ -55,6 +56,7 @@ void ChainedConnector::tryNextConnectionFactory() { } else { ConnectionFactory* connectionFactory = connectionFactoryQueue.front(); + SWIFT_LOG(debug) << "Trying next connection factory: " << typeid(*connectionFactory).name() << std::endl; connectionFactoryQueue.pop_front(); currentConnector = Connector::create(hostname, resolver, connectionFactory, timerFactory); currentConnector->setTimeoutMilliseconds(timeoutMilliseconds); |