Mailing List Archive

Ticket #13633: Improve mythfilldatabase XMLTV logging
#13633: Improve mythfilldatabase XMLTV logging
-------------------------------------------+--------------------------
Reporter: Gary Buhrmaster | Owner: (none)
Type: Patch - Feature | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - Mythfilldatabase | Version: Master Head
Severity: medium | Keywords:
Ticket locked: 0 |
-------------------------------------------+--------------------------
Improve mythfilldatabase XMLTV logging

The intent of these patches is to improve logging, especially for those
converting from the legacy DataDirect service to the Schedules Direct
XMLTV service. It is hoped that this patch set be backported to fixes/31.
The changes have been separated into smaller pieces so that the designated
SME can more appropriately review the codes.

The changes are:

* Add what appears to be a missing logging message for the interrupted
grabber case.

* Remove a LOC identifier that is not used elsewhere for LOG_ERR messages
in mythfilldatabase.

* Invoke the running of the grabber such that the output is actually
captured and logged (the code implies (via header/trailer separators) that
at some time in the past the output was made available in the logs, but it
has not been so for some time).

* Change the loglevel in programdata to be the same as EIT updates (i.e.
debug).  This also allows a run of "mythfilldatabase --verbose
general,xmltv" to not needlessly include messages about adding/deleting
actual programs (i.e. making the usage easier to review), but just include
the XMLTV logging that likely matters for the average use case.

FWIW, I initially used the new MythSystem rather than MythSystemLegacy for
the grabber invokation, but the rabbit hole for proper implementation
included implementing a TODO in MythSystem, and since it was a larger
update, would likely not be appropriate to backport. I'll look at the
TODO in MythSystem and converting mythfilldatabase at some later time.

Operational status:  It is in the "works for me" phase (I am using the
entire set of patches with my own builds of MythTV).

Patches will be attached.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13633>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13633: Improve mythfilldatabase XMLTV logging [ In reply to ]
#13633: Improve mythfilldatabase XMLTV logging
---------------------------------------+------------------------------
Reporter: Gary Buhrmaster | Owner: (none)
Type: Patch - Feature | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - Mythfilldatabase | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
---------------------------------------+------------------------------
Changes (by Gary Buhrmaster):

* Attachment "0001-add-missing-log-message-when-grabber-interrupted.patch"
added.

add-missing-log-message-when-grabber-interrupted

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13633>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13633: Improve mythfilldatabase XMLTV logging [ In reply to ]
#13633: Improve mythfilldatabase XMLTV logging
---------------------------------------+------------------------------
Reporter: Gary Buhrmaster | Owner: (none)
Type: Patch - Feature | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - Mythfilldatabase | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
---------------------------------------+------------------------------
Changes (by Gary Buhrmaster):

* Attachment "0002-eliminate-extranous-LOC-in-logging.patch" added.

eliminate-extranous-LOC-in-logging

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13633>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13633: Improve mythfilldatabase XMLTV logging [ In reply to ]
#13633: Improve mythfilldatabase XMLTV logging
---------------------------------------+------------------------------
Reporter: Gary Buhrmaster | Owner: (none)
Type: Patch - Feature | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - Mythfilldatabase | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
---------------------------------------+------------------------------
Changes (by Gary Buhrmaster):

* Attachment "0003-Enable-output-from-the-grabber-to-be-logged.patch"
added.

Enable-output-from-the-grabber-to-be-logged

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13633>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13633: Improve mythfilldatabase XMLTV logging [ In reply to ]
#13633: Improve mythfilldatabase XMLTV logging
---------------------------------------+------------------------------
Reporter: Gary Buhrmaster | Owner: (none)
Type: Patch - Feature | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - Mythfilldatabase | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
---------------------------------------+------------------------------
Changes (by Gary Buhrmaster):

* Attachment "0004-Update-XMLTV-loglevel-in-programdata.patch" added.

Update-XMLTV-loglevel-in-programdata

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13633>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13633: Improve mythfilldatabase XMLTV logging [ In reply to ]
#13633: Improve mythfilldatabase XMLTV logging
---------------------------------------+-------------------------------
Reporter: Gary Buhrmaster | Owner: David Hampton
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - Mythfilldatabase | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
---------------------------------------+-------------------------------
Changes (by David Hampton):

* owner: (none) => David Hampton
* status: new => assigned


--
Ticket URL: <https://code.mythtv.org/trac/ticket/13633#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13633: Improve mythfilldatabase XMLTV logging [ In reply to ]
#13633: Improve mythfilldatabase XMLTV logging
---------------------------------------+-------------------------------
Reporter: Gary Buhrmaster | Owner: David Hampton
Type: Patch - Feature | Status: closed
Priority: minor | Milestone: needs_triage
Component: MythTV - Mythfilldatabase | Version: Master Head
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
---------------------------------------+-------------------------------
Changes (by Gary Buhrmaster <gary.buhrmaster@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"8602e978777fc20bea760ff37b620017f77a1fc1/mythtv"
8602e97877/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="8602e978777fc20bea760ff37b620017f77a1fc1"
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.

Last of four patches. Fixes #13633.

Signed-off-by: David Hampton <mythtv@love2code.net>
(cherry picked from commit 6e61aa988fe1cbc260798d5be53c496f66b04f4f)
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13633#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13633: Improve mythfilldatabase XMLTV logging [ In reply to ]
#13633: Improve mythfilldatabase XMLTV logging
---------------------------------------+-------------------------------
Reporter: Gary Buhrmaster | Owner: David Hampton
Type: Patch - Feature | Status: closed
Priority: minor | Milestone: needs_triage
Component: MythTV - Mythfilldatabase | Version: Master Head
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
---------------------------------------+-------------------------------

Comment (by Gary Buhrmaster <gary.buhrmaster@…>):

In [changeset:"8602e978777fc20bea760ff37b620017f77a1fc1/mythtv"
8602e97877/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="8602e978777fc20bea760ff37b620017f77a1fc1"
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.

Last of four patches. Fixes #13633.

Signed-off-by: David Hampton <mythtv@love2code.net>
(cherry picked from commit 6e61aa988fe1cbc260798d5be53c496f66b04f4f)
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13633#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13633: Improve mythfilldatabase XMLTV logging [ In reply to ]
#13633: Improve mythfilldatabase XMLTV logging
---------------------------------------+-------------------------------
Reporter: Gary Buhrmaster | Owner: David Hampton
Type: Patch - Feature | Status: closed
Priority: minor | Milestone: 31.1
Component: MythTV - Mythfilldatabase | Version: Master Head
Severity: medium | Resolution: fixed
Keywords: | Ticket locked: 0
---------------------------------------+-------------------------------
Changes (by Stuart Auchterlonie):

* milestone: needs_triage => 31.1


--
Ticket URL: <https://code.mythtv.org/trac/ticket/13633#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center