mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
Add more logging to connection handling
This commit is contained in:
@@ -221,6 +221,7 @@ ControlConnection::handleMsg( msg_ptr msg )
|
|||||||
if ( !msg->is( Msg::JSON ) )
|
if ( !msg->is( Msg::JSON ) )
|
||||||
{
|
{
|
||||||
Q_ASSERT( msg->is( Msg::JSON ) );
|
Q_ASSERT( msg->is( Msg::JSON ) );
|
||||||
|
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Received message was not in JSON format";
|
||||||
markAsFailed();
|
markAsFailed();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -308,6 +308,8 @@ Servent::isValidExternalIP( const QHostAddress& addr )
|
|||||||
void
|
void
|
||||||
Servent::registerOffer( const QString& key, Connection* conn )
|
Servent::registerOffer( const QString& key, Connection* conn )
|
||||||
{
|
{
|
||||||
|
// The registered connection should always be != NULL
|
||||||
|
Q_ASSERT( conn != NULL );
|
||||||
m_offers[key] = QPointer<Connection>(conn);
|
m_offers[key] = QPointer<Connection>(conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -926,6 +928,7 @@ Servent::connectToPeer(const peerinfo_ptr& peerInfo, const QList<SipInfo>& sipIn
|
|||||||
void
|
void
|
||||||
Servent::connectToPeerFailed( const peerinfo_ptr& peerInfo, QList<SipInfo> sipInfo, Connection* conn, QTcpSocketExtra* socket )
|
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();
|
bool connIsNull = socket->_conn.isNull();
|
||||||
cleanupSocket( socket );
|
cleanupSocket( socket );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user