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) |
1205 | 1205 | */ |
1206 | 1206 | uint ProgInfo::InsertDB(MSqlQuery &query, uint chanid) const |
1207 | 1207 | { |
1208 | | LOG(VB_XMLTV, LOG_INFO, |
| 1208 | LOG(VB_XMLTV, LOG_DEBUG, |
1209 | 1209 | QString("Inserting new program : %1 - %2 %3 %4") |
1210 | 1210 | .arg(m_starttime.toString(Qt::ISODate)) |
1211 | 1211 | .arg(m_endtime.toString(Qt::ISODate)) |
… |
… |
void ProgramData::FixProgramList(QList<ProgInfo*> &fixlist) |
1426 | 1426 | tokeep = it, todelete = cur; |
1427 | 1427 | |
1428 | 1428 | |
1429 | | LOG(VB_XMLTV, LOG_INFO, |
| 1429 | LOG(VB_XMLTV, LOG_DEBUG, |
1430 | 1430 | QString("Removing conflicting program: %1 - %2 %3 %4") |
1431 | 1431 | .arg((*todelete)->m_starttime.toString(Qt::ISODate)) |
1432 | 1432 | .arg((*todelete)->m_endtime.toString(Qt::ISODate)) |
1433 | 1433 | .arg((*todelete)->m_channel) |
1434 | 1434 | .arg((*todelete)->m_title)); |
1435 | 1435 | |
1436 | | LOG(VB_XMLTV, LOG_INFO, |
| 1436 | LOG(VB_XMLTV, LOG_DEBUG, |
1437 | 1437 | QString("Conflicted with : %1 - %2 %3 %4") |
1438 | 1438 | .arg((*tokeep)->m_starttime.toString(Qt::ISODate)) |
1439 | 1439 | .arg((*tokeep)->m_endtime.toString(Qt::ISODate)) |
… |
… |
bool ProgramData::IsUnchanged( |
1684 | 1684 | bool ProgramData::DeleteOverlaps( |
1685 | 1685 | MSqlQuery &query, uint chanid, const ProgInfo &pi) |
1686 | 1686 | { |
1687 | | if (VERBOSE_LEVEL_CHECK(VB_XMLTV, LOG_INFO)) |
| 1687 | if (VERBOSE_LEVEL_CHECK(VB_XMLTV, LOG_DEBUG)) |
1688 | 1688 | { |
1689 | 1689 | // Get overlaps.. |
1690 | 1690 | query.prepare( |
… |
… |
bool ProgramData::DeleteOverlaps( |
1705 | 1705 | |
1706 | 1706 | do |
1707 | 1707 | { |
1708 | | LOG(VB_XMLTV, LOG_INFO, |
| 1708 | LOG(VB_XMLTV, LOG_DEBUG, |
1709 | 1709 | QString("Removing existing program: %1 - %2 %3 %4") |
1710 | 1710 | .arg(MythDate::as_utc(query.value(1).toDateTime()).toString(Qt::ISODate)) |
1711 | 1711 | .arg(MythDate::as_utc(query.value(2).toDateTime()).toString(Qt::ISODate)) |