1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 20:00:13 +02:00

* Tune down logging verbosity a bit.

This commit is contained in:
Christian Muehlhaeuser
2013-04-05 18:58:42 +02:00
parent 102633803a
commit b3751525dd
5 changed files with 14 additions and 13 deletions

View File

@@ -714,7 +714,7 @@ XmppSipPlugin::onPresenceReceived( const Jreen::RosterItem::Ptr& item, const Jre
Jreen::JID jid = presence.from(); Jreen::JID jid = presence.from();
QString fulljid( jid.full() ); QString fulljid( jid.full() );
qDebug() << Q_FUNC_INFO << "* New presence:" << fulljid << presence.subtype(); tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "New presence:" << fulljid << presence.subtype();
if ( jid == m_client->jid() ) if ( jid == m_client->jid() )
return; return;
@@ -728,7 +728,7 @@ XmppSipPlugin::onPresenceReceived( const Jreen::RosterItem::Ptr& item, const Jre
// cache name // cache name
if( !item.isNull() && item->name() != jid.bare() && m_jidsNames.value( jid.bare() ) != item->name() ) if( !item.isNull() && item->name() != jid.bare() && m_jidsNames.value( jid.bare() ) != item->name() )
{ {
tLog() << "cache name" << item->name() << "for" << jid.bare() << item << presence.subtype(); tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Cache name" << item->name() << "for" << jid.bare() << item << presence.subtype();
m_jidsNames.insert( jid.bare(), item->name() ); m_jidsNames.insert( jid.bare(), item->name() );
// find peers for the jid and update their friendlyName // find peers for the jid and update their friendlyName
@@ -747,7 +747,7 @@ XmppSipPlugin::onPresenceReceived( const Jreen::RosterItem::Ptr& item, const Jre
Jreen::Capabilities::Ptr caps = presence.payload<Jreen::Capabilities>(); Jreen::Capabilities::Ptr caps = presence.payload<Jreen::Capabilities>();
if ( caps ) if ( caps )
{ {
qDebug() << Q_FUNC_INFO << fulljid << "Running tomahawk: maybe" << "caps" << caps->node() << "requesting disco..."; tDebug( LOGVERBOSE ) << Q_FUNC_INFO << fulljid << "Running tomahawk: maybe" << "caps" << caps->node() << "requesting disco...";
// request disco features // request disco features
QString node = caps->node() + '#' + caps->ver(); QString node = caps->node() + '#' + caps->ver();

View File

@@ -166,7 +166,7 @@ SourcePlaylistInterface::reset()
void void
SourcePlaylistInterface::onSourcePlaybackStarted( const Tomahawk::query_ptr& query ) SourcePlaylistInterface::onSourcePlaybackStarted( const Tomahawk::query_ptr& query )
{ {
tDebug( LOGEXTRA ) << Q_FUNC_INFO; tDebug( LOGVERBOSE ) << Q_FUNC_INFO;
connect( query.data(), SIGNAL( resolvingFinished( bool ) ), SLOT( resolvingFinished( bool ) ) ); connect( query.data(), SIGNAL( resolvingFinished( bool ) ), SLOT( resolvingFinished( bool ) ) );
Pipeline::instance()->resolve( query ); Pipeline::instance()->resolve( query );
m_gotNextItem = false; m_gotNextItem = false;
@@ -176,7 +176,7 @@ SourcePlaylistInterface::onSourcePlaybackStarted( const Tomahawk::query_ptr& que
void void
SourcePlaylistInterface::resolvingFinished( bool hasResults ) SourcePlaylistInterface::resolvingFinished( bool hasResults )
{ {
tDebug( LOGEXTRA ) << Q_FUNC_INFO << "Has results?" << ( hasResults ? "true" : "false" ); tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Has results?" << ( hasResults ? "true" : "false" );
if ( hasResults ) if ( hasResults )
{ {
m_gotNextItem = true; m_gotNextItem = true;

View File

@@ -284,7 +284,8 @@ Collection::delTracks( const QList<unsigned int>& ids )
void void
Collection::onSynced() Collection::onSynced()
{ {
tDebug() << Q_FUNC_INFO << m_changed; tDebug( LOGVERBOSE ) << Q_FUNC_INFO << m_changed;
if ( m_changed ) if ( m_changed )
{ {
m_changed = false; m_changed = false;

View File

@@ -221,7 +221,7 @@ DBSyncConnection::handleMsg( msg_ptr msg )
if ( m.value( "method" ).toString() == "trigger" ) if ( m.value( "method" ).toString() == "trigger" )
{ {
tLog() << "Got trigger msg on dbsyncconnection, checking for new stuff."; tLog( LOGVERBOSE ) << "Got trigger msg on dbsyncconnection, checking for new stuff.";
check(); check();
return; return;
} }

View File

@@ -135,7 +135,7 @@ Servent::startListening( QHostAddress ha, bool upnp, int port )
} }
TomahawkSettings::ExternalAddressMode mode = TomahawkSettings::instance()->externalAddressMode(); TomahawkSettings::ExternalAddressMode mode = TomahawkSettings::instance()->externalAddressMode();
tLog() << "Servent listening on port" << m_port << "- servent thread:" << thread() tLog() << "Servent listening on port" << m_port << "- servent thread:" << thread()
<< "- address mode:" << (int)( mode ); << "- address mode:" << (int)( mode );
@@ -465,7 +465,7 @@ Servent::readyRead()
QByteArray ba = sock.data()->read( sock.data()->_msg->length() ); QByteArray ba = sock.data()->read( sock.data()->_msg->length() );
sock.data()->_msg->fill( ba ); sock.data()->_msg->fill( ba );
if ( !sock.data()->_msg->is( Msg::JSON ) ) if ( !sock.data()->_msg->is( Msg::JSON ) )
{ {
tDebug() << ba; tDebug() << ba;
@@ -494,7 +494,7 @@ Servent::readyRead()
bool dupe = false; bool dupe = false;
if ( m_connectedNodes.contains( nodeid ) ) if ( m_connectedNodes.contains( nodeid ) )
{ {
tDebug() << "connected nodes contains it."; tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Connected nodes contains it.";
dupe = true; dupe = true;
} }
@@ -502,7 +502,7 @@ Servent::readyRead()
{ {
Q_ASSERT( con ); Q_ASSERT( con );
tLog() << "known connection:" << con->id(); tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Known connection:" << con->id();
if ( con->id() == nodeid ) if ( con->id() == nodeid )
{ {
dupe = true; dupe = true;
@@ -648,7 +648,7 @@ Servent::socketConnected()
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Socket's connection was null, could have timed out or been given an invalid address"; tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Socket's connection was null, could have timed out or been given an invalid address";
return; return;
} }
Connection* conn = sock->_conn.data(); Connection* conn = sock->_conn.data();
handoverSocket( conn, sock ); handoverSocket( conn, sock );
} }
@@ -1032,7 +1032,7 @@ Servent::isIPWhitelisted( QHostAddress ip )
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Performing checks against ip" << ip.toString(); tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Performing checks against ip" << ip.toString();
typedef QPair< QHostAddress, int > range; typedef QPair< QHostAddress, int > range;
QList< range > subnetEntries; QList< range > subnetEntries;
QList< QNetworkInterface > networkInterfaces = QNetworkInterface::allInterfaces(); QList< QNetworkInterface > networkInterfaces = QNetworkInterface::allInterfaces();
foreach ( QNetworkInterface interface, networkInterfaces ) foreach ( QNetworkInterface interface, networkInterfaces )
{ {