Opened 8 years ago

Closed 7 years ago

#11943 closed Patch - Feature (Fixed)

Feature patch for improved logging in tv_rec.cpp

Reported by: Gary Buhrmaster <gary.buhrmaster@…> Owned by: jpoet
Priority: minor Milestone: unknown
Component: MythTV - Recording Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no


This is a feature patch for improved logging in tv_rec.cpp.

This patch is broken into two parts so that it may be more easily reviewed by the developers.

The first patch provides for the log message to include the cardid (via the LOC macro) that is used for all other LOGs in the source file by making the load_profile function a member function which has access to the cardid. The function is renamed to to LoadProfile? to match the convention of other member functions, and the references are updated.

*NOTE* that there is a missing part to the first patch. The patch (as referenced) does not bump the ABI version. Since this ticket may remain under review for some time, I did not want to end up accidentally colliding with some later patch, or make it harder to apply at some future point. This results in a requirement for the developer who commits the patches to create a ABI bump patch.

The second patch provides additional logging for the (new) LoadProfile? function when certain failures and fallbacks are used, and may indicate a potential error condition. The second patch depends on the first being applied.

The patches have been (lightly) tested in my development environment and by directly manipulating my dev database to force some of the error messages to be logged.

Thank you for consideration of this patch.

Patch 1 - github ref: Patch 1 - github git-am ref:

Patch 2 - github ref: Patch 2 - github git-am ref:

Change History (3)

comment:1 Changed 7 years ago by Gary Buhrmaster <gary.buhrmaster@…>

Revised patches to reflect the updates to tv_rec by various developers over the last few months.

The patches are still split into two parts. The first patch still needs a bump in the ABI if it is accepted and applied.

Revised patch 1 - github ref: Revised patch 1 - github git-am ref:

Revised patch 2 - github ref: Revised patch 2 - github git-am ref:

comment:2 Changed 7 years ago by jpoet

Owner: changed from danielk to jpoet
Status: newaccepted

comment:3 Changed 7 years ago by jpoet

Resolution: Fixed
Status: acceptedclosed

Committed as [dded8ab8e] and [ccb645396].

Thanks Gary.

Note: See TracTickets for help on using tickets.