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:
parent
fb1d86872d
commit
7799750a01
@ -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;
|
||||
}
|
||||
|
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user