1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-02 12:20:45 +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

@@ -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;