From e27891172af24632bdac7a3c1bd13297ba6fd740 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 5 Jul 2013 14:38:53 +0200 Subject: [PATCH] Debug spam for ScriptCommand failure --- src/libtomahawk/resolvers/ScriptCommand_AllAlbums.cpp | 1 + src/libtomahawk/resolvers/ScriptCommand_AllArtists.cpp | 3 +++ src/libtomahawk/resolvers/ScriptCommand_AllTracks.cpp | 3 +++ 3 files changed, 7 insertions(+) diff --git a/src/libtomahawk/resolvers/ScriptCommand_AllAlbums.cpp b/src/libtomahawk/resolvers/ScriptCommand_AllAlbums.cpp index 60d73bea4..b1d34679c 100644 --- a/src/libtomahawk/resolvers/ScriptCommand_AllAlbums.cpp +++ b/src/libtomahawk/resolvers/ScriptCommand_AllAlbums.cpp @@ -83,6 +83,7 @@ ScriptCommand_AllAlbums::exec() void ScriptCommand_AllAlbums::reportFailure() { + tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << "and artist" << m_artist->name(); emit albums( QList< Tomahawk::album_ptr >() ); emit done(); } diff --git a/src/libtomahawk/resolvers/ScriptCommand_AllArtists.cpp b/src/libtomahawk/resolvers/ScriptCommand_AllArtists.cpp index 3d4509f0f..c7cdce6f2 100644 --- a/src/libtomahawk/resolvers/ScriptCommand_AllArtists.cpp +++ b/src/libtomahawk/resolvers/ScriptCommand_AllArtists.cpp @@ -22,6 +22,8 @@ #include "ExternalResolver.h" #include "ScriptCollection.h" +#include "utils/Logger.h" + ScriptCommand_AllArtists::ScriptCommand_AllArtists( const Tomahawk::collection_ptr& collection, QObject* parent ) : ScriptCommand( parent ) @@ -71,6 +73,7 @@ ScriptCommand_AllArtists::exec() void ScriptCommand_AllArtists::reportFailure() { + tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name(); emit artists( QList< Tomahawk::artist_ptr >() ); emit done(); } diff --git a/src/libtomahawk/resolvers/ScriptCommand_AllTracks.cpp b/src/libtomahawk/resolvers/ScriptCommand_AllTracks.cpp index 22befe690..008580a67 100644 --- a/src/libtomahawk/resolvers/ScriptCommand_AllTracks.cpp +++ b/src/libtomahawk/resolvers/ScriptCommand_AllTracks.cpp @@ -22,6 +22,8 @@ #include "PlaylistEntry.h" #include "ScriptCollection.h" +#include "utils/Logger.h" + ScriptCommand_AllTracks::ScriptCommand_AllTracks( const Tomahawk::collection_ptr& collection, const Tomahawk::album_ptr& album, QObject* parent ) @@ -72,6 +74,7 @@ ScriptCommand_AllTracks::exec() void ScriptCommand_AllTracks::reportFailure() { + tDebug() << Q_FUNC_INFO << "for collection" << m_collection->name() << " artist" << m_album->artist()->name() << " album" << m_album->name(); emit tracks( QList< Tomahawk::query_ptr >() ); emit done(); }