1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

Add more logging to connection handling

This commit is contained in:
Uwe L. Korn 2013-05-15 13:49:26 +02:00
parent fb1d86872d
commit 7799750a01
2 changed files with 4 additions and 0 deletions

View File

@ -221,6 +221,7 @@ ControlConnection::handleMsg( msg_ptr msg )
if ( !msg->is( Msg::JSON ) )
{
Q_ASSERT( msg->is( Msg::JSON ) );
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Received message was not in JSON format";
markAsFailed();
return;
}

View File

@ -308,6 +308,8 @@ Servent::isValidExternalIP( const QHostAddress& addr )
void
Servent::registerOffer( const QString& key, Connection* conn )
{
// The registered connection should always be != NULL
Q_ASSERT( conn != NULL );
m_offers[key] = QPointer<Connection>(conn);
}
@ -926,6 +928,7 @@ Servent::connectToPeer(const peerinfo_ptr& peerInfo, const QList<SipInfo>& sipIn
void
Servent::connectToPeerFailed( const peerinfo_ptr& peerInfo, QList<SipInfo> sipInfo, Connection* conn, QTcpSocketExtra* socket )
{
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Connecting to " << conn->peerIpAddress() << " failed";
bool connIsNull = socket->_conn.isNull();
cleanupSocket( socket );