Skip to content

Commit 263c05a

Browse files
committed
Squelch cerr output from command line parser
Alter the settings override log to only print out a notice when the parser is put into verbose mode. This may be run before the logger is configured, so it cannot use traditional log filtering.
1 parent 13f64ac commit 263c05a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mythtv/libs/libmythbase/mythcommandlineparser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1941,7 +1941,8 @@ int MythCommandLineParser::ConfigureLogging(QString mask, unsigned int progress)
19411941
// WARNING: this must not be called until after MythContext is initialized
19421942
void MythCommandLineParser::ApplySettingsOverride(void)
19431943
{
1944-
cerr << "Applying settings override" << endl;
1944+
if (m_verbose)
1945+
cerr << "Applying settings override" << endl;
19451946

19461947
QMap<QString, QString> override = GetSettingsOverride();
19471948
if (override.size())

0 commit comments

Comments
 (0)