[banshee] [Extensions] Log when actions & sources [un]loaded



commit cc527d55722ac2351bc8c84d88089be24f6d4bac
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Aug 12 17:40:30 2010 -0700

    [Extensions] Log when actions & sources [un]loaded

 .../Banshee.Sources/SourceManager.cs               |    2 ++
 .../Banshee.Gui/InterfaceActionService.cs          |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs b/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
index 7877ddd..1e6ea6f 100644
--- a/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
+++ b/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
@@ -133,10 +133,12 @@ namespace Banshee.Sources
                     if (add_source) {
                         AddSource (source);
                     }
+                    Log.DebugFormat ("Extension source loaded: {0}", source.Name);
                 } else if (args.Change == ExtensionChange.Remove && extension_sources.ContainsKey (node.Id)) {
                     Source source = extension_sources[node.Id];
                     extension_sources.Remove (node.Id);
                     RemoveSource (source, true);
+                    Log.DebugFormat ("Extension source unloaded: {0}", source.Name);
                 }
             }
         }
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/InterfaceActionService.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/InterfaceActionService.cs
index a8f1940..41359da 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/InterfaceActionService.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/InterfaceActionService.cs
@@ -121,13 +121,13 @@ namespace Banshee.Gui
                         ActionGroup group = (ActionGroup)node.CreateInstance (typeof (ActionGroup));
                         extension_actions[node.Id] = group;
                         AddActionGroup (group);
-                        Log.DebugFormat ("Extension actions loaded: {0}", node.Id);
+                        Log.DebugFormat ("Extension actions loaded: {0}", group.Name);
                     }
                 } else if (args.Change == ExtensionChange.Remove) {
                     if (extension_actions.ContainsKey (node.Id)) {
                         extension_actions[node.Id].Dispose ();
+                        Log.DebugFormat ("Extension actions unloaded: {0}", extension_actions[node.Id].Name);
                         extension_actions.Remove (node.Id);
-                        Log.DebugFormat ("Extension actions unloaded: {0}", node.Id);
                     }
                 }
             } catch (Exception e) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]