Skip to content

Commit

Permalink
Change log level on some DB upgrade logging.
Browse files Browse the repository at this point in the history
Change log level on "Upgrading to MythTV schema version ..." log output
to match that used in performActualUpdate() so that no version numbers
are skipped, even if users run at non-default log levels.
  • Loading branch information
sphery committed Jul 22, 2011
1 parent c1482e6 commit 6a27dee
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions mythtv/libs/libmythtv/dbcheck.cpp
Expand Up @@ -1685,7 +1685,7 @@ NULL

if (dbver == "1093")
{
LOG(VB_GENERAL, LOG_NOTICE, "Upgrading to MythTV schema version 1094");
LOG(VB_GENERAL, LOG_CRIT, "Upgrading to MythTV schema version 1094");

MSqlQuery recordids(MSqlQuery::InitCon());
recordids.prepare("SELECT recordid,recpriority FROM record;");
Expand Down Expand Up @@ -3009,7 +3009,7 @@ NULL

if (dbver == "1181")
{
LOG(VB_GENERAL, LOG_NOTICE, "Upgrading to MythTV schema version 1182");
LOG(VB_GENERAL, LOG_CRIT, "Upgrading to MythTV schema version 1182");

MSqlQuery airdates(MSqlQuery::InitCon());
airdates.prepare("SELECT chanid, starttime FROM recordedprogram "
Expand Down Expand Up @@ -3076,7 +3076,7 @@ NULL

if (dbver == "1185")
{
LOG(VB_GENERAL, LOG_NOTICE, "Upgrading to MythTV schema version 1186");
LOG(VB_GENERAL, LOG_CRIT, "Upgrading to MythTV schema version 1186");

MSqlQuery ppuq(MSqlQuery::InitCon());

Expand Down Expand Up @@ -4966,7 +4966,7 @@ NULL

if (dbver == "1249")
{
LOG(VB_GENERAL, LOG_NOTICE, "Upgrading to MythTV schema version 1250");
LOG(VB_GENERAL, LOG_CRIT, "Upgrading to MythTV schema version 1250");

MSqlQuery select(MSqlQuery::InitCon());
select.prepare("SELECT hostname, data FROM settings "
Expand Down Expand Up @@ -5061,7 +5061,7 @@ NULL

if (dbver == "1251")
{
LOG(VB_GENERAL, LOG_NOTICE, "Upgrading to MythTV schema version 1252");
LOG(VB_GENERAL, LOG_CRIT, "Upgrading to MythTV schema version 1252");

MSqlQuery query(MSqlQuery::InitCon());
query.prepare("SHOW INDEX FROM recgrouppassword");
Expand Down Expand Up @@ -5098,7 +5098,7 @@ NULL

if (dbver == "1252")
{
LOG(VB_GENERAL, LOG_NOTICE, "Upgrading to MythTV schema version 1253");
LOG(VB_GENERAL, LOG_CRIT, "Upgrading to MythTV schema version 1253");

MSqlQuery select(MSqlQuery::InitCon());
select.prepare("SELECT hostname, data FROM settings "
Expand Down Expand Up @@ -5162,7 +5162,7 @@ NULL
if (gCoreContext->GetNumSetting("have-nit-fix") == 1)
{
// User has previously applied patch from ticket #7486.
LOG(VB_GENERAL, LOG_NOTICE,
LOG(VB_GENERAL, LOG_CRIT,
"Upgrading to MythTV schema version 1254");
if (!UpdateDBVersionNumber("1254", dbver))
return false;
Expand Down Expand Up @@ -5266,7 +5266,7 @@ NULL

if (dbver == "1258")
{
LOG(VB_GENERAL, LOG_NOTICE, "Upgrading to MythTV schema version 1259");
LOG(VB_GENERAL, LOG_CRIT, "Upgrading to MythTV schema version 1259");

MSqlQuery select(MSqlQuery::InitCon());
select.prepare("SELECT hostname, data FROM settings "
Expand Down Expand Up @@ -5350,7 +5350,7 @@ NULL

if (dbver == "1259")
{
LOG(VB_GENERAL, LOG_NOTICE, "Upgrading to MythTV schema version 1260");
LOG(VB_GENERAL, LOG_CRIT, "Upgrading to MythTV schema version 1260");

MSqlQuery query(MSqlQuery::InitCon());
query.prepare("DELETE FROM keybindings WHERE "
Expand Down Expand Up @@ -5441,7 +5441,7 @@ NULL
{
if (gCoreContext->GetNumSetting("MythFillFixProgramIDsHasRunOnce", 0))
{
LOG(VB_GENERAL, LOG_NOTICE,
LOG(VB_GENERAL, LOG_CRIT,
"Upgrading to MythTV schema version 1261");
if (!UpdateDBVersionNumber("1261", dbver))
return false;
Expand Down Expand Up @@ -5788,7 +5788,7 @@ NULL

if (dbver == "1279")
{
LOG(VB_GENERAL, LOG_NOTICE, "Upgrading to MythTV schema version 1280");
LOG(VB_GENERAL, LOG_CRIT, "Upgrading to MythTV schema version 1280");

MSqlQuery select(MSqlQuery::InitCon());
// New DBs/hosts will not have a NoPromptOnExit, so they'll get defaults
Expand Down

0 comments on commit 6a27dee

Please sign in to comment.