mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Remove some debugging
This commit is contained in:
parent
7cc4632761
commit
ed11593b16
@ -82,7 +82,6 @@ Connection::handleIncomingQueueEmpty()
|
||||
// << "m_peer_disconnected" << m_peer_disconnected
|
||||
// << "bytes rx" << bytesReceived();
|
||||
|
||||
tDebug() << Q_FUNC_INFO << "m_sock peer address: " << m_sock->peerAddress().toIPv4Address();
|
||||
if( !m_sock.isNull() && m_sock->bytesAvailable() == 0 && m_peer_disconnected )
|
||||
{
|
||||
qDebug() << "No more data to read, peer disconnected. shutting down connection."
|
||||
@ -153,7 +152,6 @@ Connection::actualShutdown()
|
||||
|
||||
if ( !m_sock.isNull() && m_sock->isOpen() )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << "m_sock peer address: " << m_sock->peerAddress().toIPv4Address();
|
||||
m_sock->disconnectFromHost();
|
||||
}
|
||||
|
||||
@ -179,8 +177,7 @@ Connection::start( QTcpSocket* sock )
|
||||
Q_ASSERT( sock->isValid() );
|
||||
|
||||
m_sock = sock;
|
||||
tDebug() << Q_FUNC_INFO << "m_sock peer address: " << m_sock->peerAddress().toIPv4Address();
|
||||
|
||||
|
||||
if( m_name.isEmpty() )
|
||||
{
|
||||
m_name = QString( "peer[%1]" ).arg( m_sock->peerAddress().toString() );
|
||||
@ -229,8 +226,7 @@ Connection::doSetup()
|
||||
m_statstimer_mark.start();
|
||||
|
||||
m_sock->moveToThread( thread() );
|
||||
tDebug() << Q_FUNC_INFO << "m_sock peer address: " << m_sock->peerAddress().toIPv4Address();
|
||||
|
||||
|
||||
connect( m_sock.data(), SIGNAL( bytesWritten( qint64 ) ),
|
||||
SLOT( bytesWritten( qint64 ) ), Qt::QueuedConnection );
|
||||
|
||||
@ -270,7 +266,6 @@ Connection::socketDisconnected()
|
||||
<< "bytesavail:" << m_sock->bytesAvailable()
|
||||
<< "bytesRecvd" << bytesReceived();
|
||||
|
||||
tDebug() << Q_FUNC_INFO << "m_sock peer address: " << m_sock->peerAddress().toIPv4Address();
|
||||
m_peer_disconnected = true;
|
||||
emit socketClosed();
|
||||
|
||||
@ -431,7 +426,6 @@ Connection::sendMsg_now( msg_ptr msg )
|
||||
Q_ASSERT( QThread::currentThread() == thread() );
|
||||
// Q_ASSERT( this->isRunning() );
|
||||
|
||||
tDebug() << Q_FUNC_INFO << "m_sock peer address: " << m_sock->peerAddress().toIPv4Address();
|
||||
if ( m_sock.isNull() || !m_sock->isOpen() || !m_sock->isWritable() )
|
||||
{
|
||||
qDebug() << "***** Socket problem, whilst in sendMsg(). Cleaning up. *****";
|
||||
|
@ -82,7 +82,6 @@ ControlConnection::clone()
|
||||
void
|
||||
ControlConnection::setup()
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << "m_sock peer address: " << m_sock->peerAddress().toIPv4Address();
|
||||
qDebug() << Q_FUNC_INFO << id() << name();
|
||||
|
||||
if ( !m_source.isNull() )
|
||||
@ -126,7 +125,6 @@ ControlConnection::setup()
|
||||
void
|
||||
ControlConnection::registerSource()
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << "m_sock peer address: " << m_sock->peerAddress().toIPv4Address();
|
||||
qDebug() << Q_FUNC_INFO << m_source->id();
|
||||
Source* source = (Source*) sender();
|
||||
Q_UNUSED( source )
|
||||
@ -149,7 +147,6 @@ ControlConnection::registerSource()
|
||||
void
|
||||
ControlConnection::setupDbSyncConnection( bool ondemand )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << "m_sock peer address: " << m_sock->peerAddress().toIPv4Address();
|
||||
qDebug() << Q_FUNC_INFO << ondemand << m_source->id() << m_dbconnkey << m_dbsyncconn << m_registered;
|
||||
|
||||
if ( m_dbsyncconn || !m_registered )
|
||||
@ -192,7 +189,6 @@ ControlConnection::setupDbSyncConnection( bool ondemand )
|
||||
void
|
||||
ControlConnection::dbSyncConnFinished( QObject* c )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << "m_sock peer address: " << m_sock->peerAddress().toIPv4Address();
|
||||
qDebug() << Q_FUNC_INFO << "DBSync connection closed (for now)";
|
||||
if( (DBSyncConnection*)c == m_dbsyncconn )
|
||||
{
|
||||
@ -207,7 +203,6 @@ ControlConnection::dbSyncConnFinished( QObject* c )
|
||||
DBSyncConnection*
|
||||
ControlConnection::dbSyncConnection()
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << "m_sock peer address: " << m_sock->peerAddress().toIPv4Address();
|
||||
qDebug() << Q_FUNC_INFO << m_source->id();
|
||||
if ( !m_dbsyncconn )
|
||||
{
|
||||
@ -222,7 +217,6 @@ ControlConnection::dbSyncConnection()
|
||||
void
|
||||
ControlConnection::handleMsg( msg_ptr msg )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << "m_sock peer address: " << m_sock->peerAddress().toIPv4Address();
|
||||
if ( msg->is( Msg::PING ) )
|
||||
{
|
||||
// qDebug() << "Received Connection PING, nice." << m_pingtimer_mark.elapsed();
|
||||
|
Loading…
x
Reference in New Issue
Block a user