[banshee] [AmazonMp3] Add more debug logging for bgo#626195
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [AmazonMp3] Add more debug logging for bgo#626195
- Date: Mon, 27 Sep 2010 18:58:40 +0000 (UTC)
commit 382a2c2678e642c52cf6dbe303e4b8f5f6c7874d
Author: Gabriel Burt <gabriel burt gmail com>
Date: Mon Sep 27 13:54:30 2010 -0500
[AmazonMp3] Add more debug logging for bgo#626195
.../Banshee.AmazonMp3/AmazonDownloadManager.cs | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/Extensions/Banshee.AmazonMp3/Banshee.AmazonMp3/AmazonDownloadManager.cs b/src/Extensions/Banshee.AmazonMp3/Banshee.AmazonMp3/AmazonDownloadManager.cs
index 56b87b9..8f1275e 100644
--- a/src/Extensions/Banshee.AmazonMp3/Banshee.AmazonMp3/AmazonDownloadManager.cs
+++ b/src/Extensions/Banshee.AmazonMp3/Banshee.AmazonMp3/AmazonDownloadManager.cs
@@ -89,6 +89,7 @@ namespace Banshee.AmazonMp3
private void OnImportManagerImportResult (object o, DatabaseImportResultArgs args)
{
+ Log.InformationFormat ("Amazon downloader: imported {0}", args.Track);
mp3_imported_tracks.Add (args.Track);
TryToFixNonMp3Metadata ();
import_event.Set ();
@@ -181,6 +182,7 @@ namespace Banshee.AmazonMp3
if (last_file) {
import_event.Reset ();
}
+ Log.InformationFormat ("Finished downloading \"{0}\" by {1}; adding to import queue", track.Title, track.Creator);
import_manager.Enqueue (amz_downloader.LocalPath);
break;
default:
@@ -194,14 +196,16 @@ namespace Banshee.AmazonMp3
// calling base.OnDownloaderFinished since that will make the Job finished which will
// mean all references to the manager are gone and it may be garbage collected.
if (last_file) {
+ Log.InformationFormat ("Amazon downloader: waiting for last file to be imported");
TryToFixNonMp3Metadata ();
import_event.WaitOne ();
+ Log.InformationFormat ("Amazon downloader: last file imported; finishing");
}
base.OnDownloaderFinished (downloader);
- Log.InformationFormat ("Finished downloading \"{0}\" by {1}; Success? {2} File: {3}", track.Title, track.Creator,
- downloader.State.Success, amz_downloader.LocalPath);
+ //Log.InformationFormat ("Finished downloading \"{0}\" by {1}; Success? {2} File: {3}", track.Title, track.Creator,
+ //downloader.State.Success, amz_downloader.LocalPath);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]