From eea254d29c46de4244adddf0f4040288ac86c298 Mon Sep 17 00:00:00 2001 From: HanzZ Date: Tue, 13 Mar 2012 21:57:09 +0100 Subject: [PATCH] log error on disconnect everytime --- src/user.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user.cpp b/src/user.cpp index e94ae872..8cfcd0ea 100644 --- a/src/user.cpp +++ b/src/user.cpp @@ -328,7 +328,7 @@ void User::handleDisconnected(const std::string &error, Swift::SpectrumErrorPayl if (e == Swift::SpectrumErrorPayload::CONNECTION_ERROR_OTHER_ERROR || e == Swift::SpectrumErrorPayload::CONNECTION_ERROR_NETWORK_ERROR) { if (m_reconnectCounter < 3) { m_reconnectCounter++; - LOG4CXX_INFO(logger, m_jid.toString() << ": Disconnecting from legacy network for, trying to reconnect automatically."); + LOG4CXX_INFO(logger, m_jid.toString() << ": Disconnecting from legacy network " << error << ", trying to reconnect automatically."); // Simulate destruction/resurrection :) // TODO: If this stops working, create onReconnect signal m_userManager->onUserDestroyed(this);