summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-13 20:27:50 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-13 20:58:23 (GMT)
commit27878a6a612af77fdc6f27dacc0201a8da92a1fb (patch)
tree20f1590258f2e6694e89b140a7ed603da33a1b16 /Swiften/Client
parent0863ece69f6490602e90b22c0dd17189bd8bf5a7 (diff)
downloadswift-27878a6a612af77fdc6f27dacc0201a8da92a1fb.zip
swift-27878a6a612af77fdc6f27dacc0201a8da92a1fb.tar.bz2
Added debug output to connector.
Diffstat (limited to 'Swiften/Client')
-rw-r--r--Swiften/Client/CoreClient.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/Client/CoreClient.cpp b/Swiften/Client/CoreClient.cpp
index 8658168..e61f9f9 100644
--- a/Swiften/Client/CoreClient.cpp
+++ b/Swiften/Client/CoreClient.cpp
@@ -18,6 +18,7 @@
#include "Swiften/Queries/IQRouter.h"
#include "Swiften/Base/IDGenerator.h"
#include "Swiften/Client/ClientSessionStanzaChannel.h"
+#include <Swiften/Base/Log.h>
namespace Swift {
@@ -47,10 +48,12 @@ CoreClient::~CoreClient() {
}
void CoreClient::connect() {
+ SWIFT_LOG(debug) << "Connecting" << std::endl;
connect(jid_.getDomain());
}
void CoreClient::connect(const String& host) {
+ SWIFT_LOG(debug) << "Connecting to host " << host << std::endl;
disconnectRequested_ = false;
assert(!connector_);
connector_ = Connector::create(host, &resolver_, networkFactories->getConnectionFactory(), networkFactories->getTimerFactory());