1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01: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();
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() )
return;
@ -728,7 +728,7 @@ XmppSipPlugin::onPresenceReceived( const Jreen::RosterItem::Ptr& item, const Jre
// cache 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() );
// 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>();
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
QString node = caps->node() + '#' + caps->ver();

View File

@ -166,7 +166,7 @@ SourcePlaylistInterface::reset()
void
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 ) ) );
Pipeline::instance()->resolve( query );
m_gotNextItem = false;
@ -176,7 +176,7 @@ SourcePlaylistInterface::onSourcePlaybackStarted( const Tomahawk::query_ptr& que
void
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 )
{
m_gotNextItem = true;

View File

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

View File

@ -221,7 +221,7 @@ DBSyncConnection::handleMsg( msg_ptr msg )
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();
return;
}

View File

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