Skip to content

Commit

Permalink
Improve layout of recorded program log messages
Browse files Browse the repository at this point in the history
Log message output now reformatted so that the first line is a bit shorter.
The starttime/endtime from the guide now on the second line;
the starttime/endtime from the recording now on the third line.
  • Loading branch information
kmdewaal committed Jan 5, 2021
1 parent 9ab8e19 commit 9b215a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mythtv/libs/libmyth/programinfo.cpp
Expand Up @@ -1836,7 +1836,8 @@ QString ProgramInfo::toString(const Verbosity v, const QString& sep, const QStri
switch (v)
{
case kLongDescription:
str = LOC + "channame(" + m_chanName + ") startts(" +
str = LOC + "channame(" + m_chanName + ")\n";
str += " startts(" +
m_startTs.toString() + ") endts(" + m_endTs.toString() + ")\n";
str += " recstartts(" + m_recStartTs.toString() +
") recendts(" + m_recEndTs.toString() + ")\n";
Expand Down
4 changes: 3 additions & 1 deletion mythtv/libs/libmythtv/tv_rec.cpp
Expand Up @@ -823,7 +823,7 @@ void TVRec::FinishedRecording(RecordingInfo *curRec, RecordingQuality *recq)
if (recq)
{
LOG((recq->IsDamaged()) ? VB_GENERAL : VB_RECORD, LOG_INFO,
LOC + QString("FinishedRecording(%1) %2 recq:%3\n")
LOC + QString("FinishedRecording(%1) %2 recq:\n%3")
.arg(curRec->MakeUniqueKey())
.arg((recq->IsDamaged()) ? "damaged" : "good")
.arg(recq->toStringXML()));
Expand Down Expand Up @@ -1231,6 +1231,7 @@ static bool is_dishnet_eit(uint inputid)
return false;
}

// Number of capturecard instances including multirec instances
static int num_inputs(void)
{
MSqlQuery query(MSqlQuery::InitCon());
Expand Down Expand Up @@ -1425,6 +1426,7 @@ void TVRec::run(void)
ClearFlags(kFlagExitPlayer, __FILE__, __LINE__);
}

// Start active EIT scan
if (m_scanner && m_channel &&
MythDate::current() > m_eitScanStartTime)
{
Expand Down

0 comments on commit 9b215a7

Please sign in to comment.