f-spot r4529 - in trunk: . src/Utils



Author: sdelcroix
Date: Tue Oct 21 13:57:07 2008
New Revision: 4529
URL: http://svn.gnome.org/viewvc/f-spot?rev=4529&view=rev

Log:
2008-10-21  Stephane Delcroix  <sdelcroix novell com>

	* src/Utils/Log.cs: DebugException methods to print the exception only
	in --debug mode.

Modified:
   trunk/ChangeLog
   trunk/src/Utils/Log.cs

Modified: trunk/src/Utils/Log.cs
==============================================================================
--- trunk/src/Utils/Log.cs	(original)
+++ trunk/src/Utils/Log.cs	Tue Oct 21 13:57:07 2008
@@ -278,6 +278,19 @@
                 Debug (String.Format (format, args));
             }
         }
+	
+	public static void DebugException (Exception e)
+	{
+	    if (Debugging)
+	        Exception (e);
+	}
+
+	public static void DebugException (string message, Exception e)
+	{
+	    if (Debugging)
+		Exception (message, e);
+
+	}
                 
         #endregion
         



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