Ticket #12996: v2-0011-Add-caller-information-to-the-SetAvailableStatus-.patch

File v2-0011-Add-caller-information-to-the-SetAvailableStatus-.patch, 1.1 KB (added by David Hampton <mythtv@…>, 3 years ago)

Add caller information to the SetAvailableStatus? log message.

  • mythtv/libs/libmyth/programinfo.cpp

    Add caller information to the SetAvailableStatus log message.
    
    The SetAvailableStatus function has an argument to indicate why it was
    called. This could be a helpful piece of information when debugging so
    add it to the log message instead of ignoring it.
    ---
     mythtv/libs/libmyth/programinfo.cpp | 7 ++++---
     1 file changed, 4 insertions(+), 3 deletions(-)
    
    diff --git a/mythtv/libs/libmyth/programinfo.cpp b/mythtv/libs/libmyth/programinfo.cpp
    index d1f633b..2592609 100644
    a b void ProgramInfo::SetAvailableStatus( 
    24632463    if (status != availableStatus)
    24642464    {
    24652465        LOG(VB_GUI, LOG_INFO,
    2466                  toString(kTitleSubtitle) + QString(": %1 -> %2")
    2467                      .arg(::toString((AvailableStatusType)availableStatus))
    2468                      .arg(::toString(status)));
     2466            toString(kTitleSubtitle) + QString(": %1 -> %2 in %3")
     2467            .arg(::toString((AvailableStatusType)availableStatus))
     2468            .arg(::toString(status))
     2469            .arg(where));
    24692470    }
    24702471    availableStatus = status;
    24712472}