Skip to content

Commit 35ee7a7

Browse files
committed
Anonymize logs dealing with external database access and backup.
1 parent 0e9ac20 commit 35ee7a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mythtv/libs/libmyth/dbutil.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ bool DBUtil::DoBackup(const QString &backupScript, QString &filename)
582582
.arg(backupScript));
583583

584584
QString command = backupScript + scriptArgs + " " + tempDatabaseConfFile;
585-
uint status = myth_system(command, kMSDontBlockInputDevs);
585+
uint status = myth_system(command, kMSDontBlockInputDevs|kMSAnonLog);
586586

587587
if (hastemp)
588588
{
@@ -687,7 +687,7 @@ bool DBUtil::DoBackup(QString &filename)
687687
VERBOSE(VB_IMPORTANT, QString("Backing up database to file: '%1'")
688688
.arg(backupPathname));
689689

690-
uint status = myth_system(command, kMSDontBlockInputDevs);
690+
uint status = myth_system(command, kMSDontBlockInputDevs|kMSAnonLog);
691691

692692
QByteArray tmpfile = tempExtraConfFile.toLocal8Bit();
693693
unlink(tmpfile.constData());
@@ -808,7 +808,7 @@ int DBUtil::CountClients(void)
808808
params << "-p" + DB.dbPassword;
809809
params << "-e" << "\"SHOW PROCESSLIST\"";
810810

811-
uint flags = kMSRunShell | kMSStdOut | kMSBuffered;
811+
uint flags = kMSRunShell | kMSStdOut | kMSBuffered | kMSAnonLog;
812812
MythSystem ms(cmd, params, flags);
813813
ms.Run(4);
814814
if (ms.Wait() != GENERIC_EXIT_OK)

0 commit comments

Comments
 (0)