Skip to content
Browse files

* Tune down logging verbosity a bit.

  • Loading branch information...
1 parent 1026338 commit b3751525ddd6deaadb01ec591e30fd729068dc4c @muesli muesli committed Apr 5, 2013
View
6 src/accounts/xmpp/sip/XmppSip.cpp
@@ -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
4 src/libtomahawk/SourcePlaylistInterface.cpp
@@ -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
3 src/libtomahawk/collection/Collection.cpp
@@ -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
2 src/libtomahawk/network/DbSyncConnection.cpp
@@ -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
12 src/libtomahawk/network/Servent.cpp
@@ -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,15 +494,15 @@ 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;
}
foreach ( ControlConnection* con, m_controlconnections )
{
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 )
{

0 comments on commit b375152

Please sign in to comment.
Something went wrong with that request. Please try again.