Ticket #13633: 0004-Update-XMLTV-loglevel-in-programdata.patch

File 0004-Update-XMLTV-loglevel-in-programdata.patch, 2.8 KB (added by Gary Buhrmaster, 3 months ago)

Update-XMLTV-loglevel-in-programdata

  • mythtv/libs/libmythtv/programdata.cpp

    From 3261b7446032a5ec49d22fa36865ebeabb2182b7 Mon Sep 17 00:00:00 2001
    From: Gary Buhrmaster <gary.buhrmaster@gmail.com>
    Date: Sun, 14 Jun 2020 00:19:39 +0000
    Subject: [PATCH 4/4] Update XMLTV loglevel in programdata
    
    Change the loglevel in programdata to be the same as
    EIT updates for the equivalent changes (i.e. debug).
    This allows a run of mythfilldatabase with the options
    of --verbose general,xmltv with the default loglevel
    of info to not blather on about the expected case of
    adding, deleting, updating programs (i.e. making the
    usage easier to review), but just include the XMLTV
    logging that likely matters for the average use case.
    ---
     mythtv/libs/libmythtv/programdata.cpp | 10 +++++-----
     1 file changed, 5 insertions(+), 5 deletions(-)
    
    diff --git a/mythtv/libs/libmythtv/programdata.cpp b/mythtv/libs/libmythtv/programdata.cpp
    index 3ea22aaff3..bc4d728e94 100644
    a b void ProgInfo::Squeeze(void) 
    12051205 */
    12061206uint ProgInfo::InsertDB(MSqlQuery &query, uint chanid) const
    12071207{
    1208     LOG(VB_XMLTV, LOG_INFO,
     1208    LOG(VB_XMLTV, LOG_DEBUG,
    12091209        QString("Inserting new program    : %1 - %2 %3 %4")
    12101210            .arg(m_starttime.toString(Qt::ISODate))
    12111211            .arg(m_endtime.toString(Qt::ISODate))
    void ProgramData::FixProgramList(QList<ProgInfo*> &fixlist) 
    14261426                tokeep = it, todelete = cur;
    14271427
    14281428
    1429             LOG(VB_XMLTV, LOG_INFO,
     1429            LOG(VB_XMLTV, LOG_DEBUG,
    14301430                QString("Removing conflicting program: %1 - %2 %3 %4")
    14311431                    .arg((*todelete)->m_starttime.toString(Qt::ISODate))
    14321432                    .arg((*todelete)->m_endtime.toString(Qt::ISODate))
    14331433                    .arg((*todelete)->m_channel)
    14341434                    .arg((*todelete)->m_title));
    14351435
    1436             LOG(VB_XMLTV, LOG_INFO,
     1436            LOG(VB_XMLTV, LOG_DEBUG,
    14371437                QString("Conflicted with            : %1 - %2 %3 %4")
    14381438                    .arg((*tokeep)->m_starttime.toString(Qt::ISODate))
    14391439                    .arg((*tokeep)->m_endtime.toString(Qt::ISODate))
    bool ProgramData::IsUnchanged( 
    16841684bool ProgramData::DeleteOverlaps(
    16851685    MSqlQuery &query, uint chanid, const ProgInfo &pi)
    16861686{
    1687     if (VERBOSE_LEVEL_CHECK(VB_XMLTV, LOG_INFO))
     1687    if (VERBOSE_LEVEL_CHECK(VB_XMLTV, LOG_DEBUG))
    16881688    {
    16891689        // Get overlaps..
    16901690        query.prepare(
    bool ProgramData::DeleteOverlaps( 
    17051705
    17061706        do
    17071707        {
    1708             LOG(VB_XMLTV, LOG_INFO,
     1708            LOG(VB_XMLTV, LOG_DEBUG,
    17091709                QString("Removing existing program: %1 - %2 %3 %4")
    17101710                .arg(MythDate::as_utc(query.value(1).toDateTime()).toString(Qt::ISODate))
    17111711                .arg(MythDate::as_utc(query.value(2).toDateTime()).toString(Qt::ISODate))