Skip to content

Commit

Permalink
Fix logging for debug compiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Apr 5, 2020
1 parent 1dd0408 commit 9b5d6b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mythtv/libs/libmythbase/logging.cpp
Expand Up @@ -442,26 +442,26 @@ bool LoggerThread::logConsole(LoggingItem *item) const
#if CONFIG_DEBUGTYPE
if (item->tid())
{
line = QString("%1 %2 [%3/%4] %5 %6:%7:%8 %9\n")
line = qPrintable(QString("%1 %2 [%3/%4] %5 %6:%7:%8 %9\n")
.arg(timestamp, QString(shortname),
QString::number(item->pid()),
QString::number(item->tid()),
item->rawThreadName(),
item->m_file,
QString::number(item->m_line),
item->m_function,
item->m_message);
item->m_message));
}
else
{
line = QString("%1 %2 [%3] %4 %5:%6:%7 %8\n")
line = qPrintable(QString("%1 %2 [%3] %4 %5:%6:%7 %8\n")
.arg(timestamp, QString(shortname),
QString::number(item->pid()),
item->rawThreadName(),
item->m_file,
QString::number(item->m_line),
item->m_function,
item->m_message);
item->m_message));
}
#else
line = qPrintable(QString("%1 %2 %3\n")
Expand Down

0 comments on commit 9b5d6b9

Please sign in to comment.