Skip to content

Commit c8e2e5f

Browse files
committed
Fix waiting for the logging table on upgrade.
A logic-o/typo in [aab13b3] meant that we stopped waiting for the logging table as soon as we had a MythCoreContext, which resulted in a spew of log messages saying that the logging table didn't exist for users who were upgrading their databases from versions before the new logging API or creating new databases. This fixes the wait code so that users won't be confused by/blame failed upgrades on the (harmless) messages that simply meant we were unable to log to the database, yet.
1 parent e2c5641 commit c8e2e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mythtv/libs/libmythbase/logging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ void DBLoggerThread::run(void)
518518
// then short-running tasks (like mythpreviewgen) will not log to the db
519519
// at all, and that's undesirable.
520520
bool ready = false;
521-
while (!gCoreContext && !aborted && !ready)
521+
while ( !aborted && ( !gCoreContext || !ready ) )
522522
{
523523
ready = m_logger->isDatabaseReady();
524524

0 commit comments

Comments
 (0)