ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/xmltv_parser/main.cs
(Generate patch)

Comparing trunk/xmltv_parser/main.cs (file contents):
Revision 67 by william, Sat Mar 9 01:22:07 2013 UTC vs.
Revision 68 by william, Sat Mar 9 01:28:31 2013 UTC

--- trunk/xmltv_parser/main.cs	2013/03/09 01:22:07	67
+++ trunk/xmltv_parser/main.cs	2013/03/09 01:28:31	68
@@ -28,11 +28,13 @@ namespace xmltv_parser
             gLog.CreateLog(string.Format(@"{0}\{1}", log_path, log_filename), false, LogLevel.kLogLevel_All_NoProgress, new EventHandler<LoggerOnFlushEventArgs>(Log_OnFlush));
 #if DEBUG
             LogLevel gLevel = gLog.LogLevel;
-            gLevel |= LogLevel.kLogLevel_VerboseDebug;
+            gLevel |= LogLevel.kLogLevel_VerboseDebug; // this slows things down alot
             gLevel |= LogLevel.kLogLevel_Debug;            
             gLog.SetLogLevel(gLevel);
 #else
-            LogLevel gLevel = LogLevel.kLogLevel_Default;
+            LogLevel gLevel = LogLevel.kLogLevel_Default; // set the default log level: Info, Warn, Error, Debug
+            // it is OK for kLogLevel_Debug to be set in Release mode ... must of the chatty messages are from kLogLevel_VerboseDebug
+            gLevel &= ~LogLevel.kLogLevel_VerboseDebug; // ensure this is not set            
             gLog.SetLogLevel(gLevel);
 #endif