/[xmltv_parser]/trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs
ViewVC logotype

Diff of /trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs

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

--- trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/16 16:52:43	177
+++ trunk/GBPVRProgramDatabaseFixer/SQLLITE.cs	2013/03/16 16:53:44	178
@@ -332,15 +332,15 @@
                 IProgramDefinition xmltv_entry = null;
                 if (query.Count()-1 > 0)
                 {
-                    gLog.Error.WriteLine("Found more than one entry: Matching channel='{0}' and start='{1}'", channel.channel_number, start_date.ToDateTimeString());
-                    gLog.Error.WriteLine("    GB-PVR Program Data: oid='{0}' channel_oid='{1}' name='{2}' sub_title='{3}' description='{4}'", program.oid, program.channel_oid, program.name, program.sub_title, program.description);
+                    gLog.Verbose.Error.WriteLine("Found more than one entry: Matching channel='{0}' and start='{1}'", channel.channel_number, start_date.ToDateTimeString());
+                    gLog.Verbose.Error.WriteLine("    GB-PVR Program Data: oid='{0}' channel_oid='{1}' name='{2}' sub_title='{3}' description='{4}'", program.oid, program.channel_oid, program.name, program.sub_title, program.description);
                     if (Debugger.IsAttached)
                     {                      
                         gLog.Error.WriteLine("    Found: {0} matching entries", query.Count());
                         int k_index = 0;
                         foreach (var k in query)
                         {
-                            gLog.Error.WriteLine("    query[{0}]: channel='{1}' start='{2}' ('{3}') title='{4}' subtitle='{5}' description='{6}'", k_index, k.ChannelNumber, k.Start, DateTime.Parse(k.Start).ToString("yyyy/MM/dd HH:mm:ss.fffffff"), k.Title, k.SubTitle, k.Description);
+                            gLog.Verbose.Error.WriteLine("    query[{0}]: channel='{1}' start='{2}' ('{3}') title='{4}' subtitle='{5}' description='{6}'", k_index, k.ChannelNumber, k.Start, DateTime.Parse(k.Start).ToString("yyyy/MM/dd HH:mm:ss.fffffff"), k.Title, k.SubTitle, k.Description);
                             k_index++;
                         }
                         Debugger.Break();
@@ -431,7 +431,7 @@
                 foreach (var old_program in source_invalid)
                 {
                     source_invalid_progress = 100.0 * (source_invalid_index / source_invalid_count);
-                    gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Removing old GBPVR Programs: {0:00}%", (int)source_invalid_progress)));    
+                    gLog.ReportProgress(this, new ReportProgressEventArgs((int)source_invalid_progress, string.Format("Removing old GBPVR Programs: {0:00}%", (int)source_invalid_progress)));    
                     // remove database entry
                     if (!RemoveProgramDatabaseEntry(old_program))
                     {
@@ -457,7 +457,7 @@
                 foreach (var p in source_update)
                 {
                     source_update_progress = 100.0 * (source_update_index / source_update_count);
-                    gLog.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Updating GBPVR Programs: {0:00}%", (int)source_update_progress)));    
+                    gLog.ReportProgress(this, new ReportProgressEventArgs((int)source_update_progress, string.Format("Updating GBPVR Programs: {0:00}%", (int)source_update_progress)));    
                     // remove database entry
                     if (!UpdateProgramDatabaseEntry(p.OldProgram,p.NewProgram))
                     {

 

  ViewVC Help
Powered by ViewVC 1.1.22