[banshee] ThickClient: avoid using Console.WriteLine() directly
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] ThickClient: avoid using Console.WriteLine() directly
- Date: Sun, 16 Feb 2014 22:41:53 +0000 (UTC)
commit 8f364098129de8f0cef0fd31dacf9a98039c9c4c
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Sun Feb 16 23:41:36 2014 +0100
ThickClient: avoid using Console.WriteLine() directly
If we want to print a stacktrace, the best way to do it is
rather using Hyena.Log.Exception() API.
.../Banshee.Gui/TrackActions.cs | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs
b/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs
index 609a5d1..0498d87 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs
@@ -43,7 +43,6 @@ using Banshee.Collection.Database;
using Banshee.ServiceStack;
using Banshee.Widgets;
using Banshee.Gui;
-using Banshee.Gui.Dialogs;
using Banshee.Gui.Widgets;
using Hyena.Data;
@@ -281,8 +280,7 @@ namespace Banshee.Gui
filter_selection.Clear (false);
filter_selection.SelectAll ();
} else {
- Log.Error ("Filter focused, but selection is not filter selection!");
- Console.WriteLine (System.Environment.StackTrace);
+ Log.Exception (new Exception ("Filter focused, but selection is not filter
selection!"));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]