[SCM] kodi-pvr-hts/master: [pvr.hts] minor changes to debug logging

tiber-guest at users.alioth.debian.org tiber-guest at users.alioth.debian.org
Sat Jan 7 11:27:56 UTC 2017


The following commit has been merged in the master branch:
commit 77fbd453f38af3e107a672170832bea522b12e45
Author: Adam Sutton <dev at adamsutton.me.uk>
Date:   Tue Nov 22 20:43:03 2016 +0000

    [pvr.hts] minor changes to debug logging

diff --git a/src/Tvheadend.cpp b/src/Tvheadend.cpp
index fe50f5f..86c7018 100644
--- a/src/Tvheadend.cpp
+++ b/src/Tvheadend.cpp
@@ -1261,9 +1261,10 @@ PVR_ERROR CTvheadend::GetEpg
 {
   htsmsg_field_t *f;
 
-  Logger::Log(LogLevel::LEVEL_TRACE, "get epg channel %d start %ld stop %ld", chn.iUniqueId,
+  Logger::Log(LogLevel::LEVEL_DEBUG, "get epg channel %d start %ld stop %ld", chn.iUniqueId,
            (long long)start, (long long)end);
 
+
   /* Note: Nothing to do if "async epg transfer" is enabled as all changes are pushed live to Kodi, then. */
   if (!Settings::GetInstance().GetAsyncEpg())
   {
@@ -1306,7 +1307,11 @@ PVR_ERROR CTvheadend::GetEpg
       }
     }
     htsmsg_destroy(msg);
-    Logger::Log(LogLevel::LEVEL_TRACE, "get epg channel %d events %d", chn.iUniqueId, n);
+    Logger::Log(LogLevel::LEVEL_DEBUG, "get epg channel %d events %d", chn.iUniqueId, n);
+  }
+  else
+  {
+    Logger::Log(LogLevel::LEVEL_DEBUG, "get epg channel %d ignored", chn.iUniqueId);
   }
   return PVR_ERROR_NO_ERROR;
 }
@@ -1364,6 +1369,7 @@ bool CTvheadend::Connected ( void )
   msg = htsmsg_create_map();
   if (Settings::GetInstance().GetAsyncEpg())
   {
+    Logger::Log(LogLevel::LEVEL_INFO, "request async EPG (%ld)", (long)m_epgMaxDays);
     htsmsg_add_u32(msg, "epg", 1);
     if (m_epgMaxDays > EPG_TIMEFRAME_UNLIMITED)
       htsmsg_add_s64(msg, "epgMaxTime", static_cast<int64_t>(time(NULL) + m_epgMaxDays * int64_t(24 * 60 *60)));
@@ -1378,7 +1384,7 @@ bool CTvheadend::Connected ( void )
   }
 
   htsmsg_destroy(msg);
-  Logger::Log(LogLevel::LEVEL_DEBUG, "async updates requested");
+  Logger::Log(LogLevel::LEVEL_INFO, "async updates requested");
 
   return true;
 }
@@ -1544,6 +1550,8 @@ void* CTvheadend::Process ( void )
 
 void CTvheadend::SyncCompleted ( void )
 {
+  Logger::Log(LogLevel::LEVEL_INFO, "async updates initialised");
+
   /* The complete calls are probably redundant, but its a safety feature */
   SyncChannelsCompleted();
   SyncDvrCompleted();

-- 
kodi-pvr-hts packaging



More information about the pkg-multimedia-commits mailing list