diff --git a/src/libtomahawk/Source.cpp b/src/libtomahawk/Source.cpp index deb81a6d3..4c56f4556 100644 --- a/src/libtomahawk/Source.cpp +++ b/src/libtomahawk/Source.cpp @@ -101,7 +101,11 @@ Source::setControlConnection( ControlConnection* cc ) if ( !d->cc.isNull() && d->cc->isReady() && d->cc->isRunning() ) { const QString& nodeid = Database::instance()->impl()->dbid(); - peerInfoDebug( (*cc->peerInfos().begin()) ) << Q_FUNC_INFO << "Comparing" << cc->id() << "and" << nodeid << "to detect duplicate connection, outbound:" << cc->outbound(); + peerInfoDebug( (*cc->peerInfos().begin()) ) << Q_FUNC_INFO + << "Comparing" << cc->id() + << "and" << nodeid + << "to detect duplicate connections" + << "outbound:" << cc->outbound(); // If our nodeid is "higher" than the other, we prefer inbound connection, else outbound. if ( ( cc->id() < nodeid && d->cc->outbound() ) || ( cc->id() > nodeid && !d->cc->outbound() ) ) { diff --git a/src/libtomahawk/network/ControlConnection.cpp b/src/libtomahawk/network/ControlConnection.cpp index fac452ab2..aab985267 100644 --- a/src/libtomahawk/network/ControlConnection.cpp +++ b/src/libtomahawk/network/ControlConnection.cpp @@ -146,6 +146,7 @@ ControlConnection::setup() } else { + tLog() << Q_FUNC_INFO << "We are a duplicate secondary connection, so dropping."; // We are not responsible for this source anymore, so do not keep a reference. d->source = Tomahawk::source_ptr(); // Unlock before we delete ourselves @@ -172,7 +173,7 @@ ControlConnection::registerSource() // Only continue if we are still the ControlConnection associated with this source. if ( d->source->controlConnection() == this ) { - qDebug() << Q_FUNC_INFO << d->source->id(); + tLog( LOGVERBOSE ) << Q_FUNC_INFO << d->source->id(); Source* source = (Source*) sender(); Q_UNUSED( source ) Q_ASSERT( source == d->source.data() );