/[EmuXPortal]/branches/mono/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /branches/mono/EmuXPortal/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/EmuXPortal/Form1.cs	2014/08/05 04:50:39	238
+++ trunk/EmuXPortal/Form1.cs	2014/08/05 05:19:39	241
@@ -1,5 +1,7 @@
 //#define DISABLE_CURSOR_HIDE // when this is present, the cursor will not be hidden
 //#define DISABLE_PROGRESS_PERCENTAGE_MESSASGE // when this is present, no progress percent message will be shown on any progressbar
+#define DISABLE_RELEASE_MODE_KLOGLEVEL_DEBUG // when defined will turn off kLogLevel_Debug messages, in release mode
+//#define DISABLE_DEBUG_MODE_KLOGLEVEL_VERBOSE_DEBUG // when defined will turn off kLogLevel_VerboseDebug message, in debug mode
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
@@ -109,7 +111,7 @@
                 IRomConfig config = c.Tag as IRomConfig;
                 if (config == null)
                 {
-                    gLog.Debug.WriteLine("Unable to add/remove from/to favorites (config is null): {0} [{1}]", config.RomTitle, config.RomFile);
+                    gLog.Error.WriteLine("Unable to add/remove from/to favorites (config is null): {0} [{1}]", config.RomTitle, config.RomFile);
                 }
                 else
                 {
@@ -120,11 +122,11 @@
                         gLog.Debug.WriteLine("Removing from favorites: {0} [{1}]", config.RomTitle, config.RomFile);
                         if (!RomFavorite.RemoveFavorite(config))
                         {
-                            gLog.Debug.WriteLine("Failed to remove from favorites: {0} [{1}]", config.RomTitle, config.RomFile);
+                            gLog.Error.WriteLine("Failed to remove from favorites: {0} [{1}]", config.RomTitle, config.RomFile);
                         }
                         else
                         {
-                            gLog.Debug.WriteLine("Removed from favorites: {0} [{1}]", config.RomTitle, config.RomFile);
+                            gLog.Info.WriteLine("Removed from favorites: {0} [{1}]", config.RomTitle, config.RomFile);
                             if (config.Config.PlatformNameShort == "Favorites")
                             {
                                 var parent = c.Parent;
@@ -149,21 +151,21 @@
                         gLog.Debug.WriteLine("Adding to favorites: {0} [{1}]", config.RomTitle, config.RomFile);
                         if (!RomFavorite.AddFavorite(config))
                         {
-                            gLog.Debug.WriteLine("Failed to add to favorites: {0} [{1}]", config.RomTitle, config.RomFile);
+                            gLog.Error.WriteLine("Failed to add to favorites: {0} [{1}]", config.RomTitle, config.RomFile);
                         }
                         else
                         {
-                            gLog.Debug.WriteLine("Added to favorites: {0} [{1}]", config.RomTitle, config.RomFile);
+                            gLog.Info.WriteLine("Added to favorites: {0} [{1}]", config.RomTitle, config.RomFile);
                         }
                     }
                     gLog.Debug.WriteLine("Updateing favorites");
                     if (!RomFavorite.UpdateFavorites())
                     {
-                        gLog.Debug.WriteLine("Failed to update favorites");
+                        gLog.Error.WriteLine("Failed to update favorites");
                     }
                     else
                     {
-                        gLog.Debug.WriteLine("Updated favorites");
+                        gLog.Info.WriteLine("Updated favorites");
                     }
                 }
                 return; // stop processing other keys

 

  ViewVC Help
Powered by ViewVC 1.1.22