Skip to content

Commit 174207c

Browse files
committed
Clear out unnecessary logging left in babf610533.
1 parent 8a31974 commit 174207c

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

mythtv/programs/mythcommflag/main.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,6 @@ static int FlagCommercials(ProgramInfo *program_info, int jobid,
769769
(enum SkipTypes)gCoreContext->GetNumSetting(
770770
"CommercialSkipMethod", COMM_DETECT_ALL);
771771

772-
cerr << "selecting flagging method" << endl;
773772
if (cmdline.toBool("commmethod"))
774773
{
775774
// pull commercial detection method from command line
@@ -781,8 +780,6 @@ static int FlagCommercials(ProgramInfo *program_info, int jobid,
781780
commDetectMethod = (SkipTypes) commmethod.toInt(&ok);
782781
if (!ok)
783782
{
784-
cerr << "method input not an integer, parsing" << endl;
785-
786783
// not an integer, attempt comma separated list
787784
commDetectMethod = COMM_DETECT_UNINIT;
788785
QMap<QString, SkipTypes>::const_iterator sit;
@@ -792,7 +789,6 @@ static int FlagCommercials(ProgramInfo *program_info, int jobid,
792789
for (; it != list.end(); ++it)
793790
{
794791
QString val = (*it).toLower();
795-
cerr << "parsing " << val.toLocal8Bit().constData();
796792
if (val == "off")
797793
{
798794
commDetectMethod = COMM_DETECT_OFF;
@@ -808,13 +804,10 @@ static int FlagCommercials(ProgramInfo *program_info, int jobid,
808804
}
809805

810806
// append flag method to list
811-
cerr << ": " << (int)skipTypes->value(val) << endl;
812807
commDetectMethod = (SkipTypes) ((int)commDetectMethod
813808
|| (int)skipTypes->value(val));
814809
}
815810

816-
cerr << "parsing complete: " << commDetectMethod << endl;
817-
818811
}
819812
if (commDetectMethod == COMM_DETECT_UNINIT)
820813
return GENERIC_EXIT_INVALID_CMDLINE;
@@ -860,16 +853,12 @@ static int FlagCommercials(ProgramInfo *program_info, int jobid,
860853

861854
}
862855

863-
cerr << "running commflagging with method " << commDetectMethod << endl;
864-
865856
// if selection has failed, or intentionally disabled, drop out
866857
if (commDetectMethod == COMM_DETECT_UNINIT)
867858
return GENERIC_EXIT_NOT_OK;
868859
else if (commDetectMethod == COMM_DETECT_OFF)
869860
return GENERIC_EXIT_OK;
870861

871-
cerr << "running commflagging with method " << commDetectMethod << endl;
872-
873862
frm_dir_map_t blanks;
874863
recorder = NULL;
875864

@@ -888,8 +877,6 @@ static int FlagCommercials(ProgramInfo *program_info, int jobid,
888877
}
889878
*/
890879

891-
cerr << "checking for file existence" << endl;
892-
893880
if (!DoesFileExist(program_info))
894881
return GENERIC_EXIT_PERMISSIONS_ERROR;
895882

@@ -915,7 +902,6 @@ static int FlagCommercials(ProgramInfo *program_info, int jobid,
915902
}
916903
}
917904

918-
cerr << "starting commflagging" << endl;
919905
MythCommFlagPlayer *cfp = new MythCommFlagPlayer();
920906

921907
PlayerContext *ctx = new PlayerContext(kFlaggerInUseID);
@@ -1120,16 +1106,11 @@ int main(int argc, char *argv[])
11201106
QString filename;
11211107
QString outputfilename = QString::null;
11221108

1123-
uint chanid = 0;
11241109
QDateTime starttime;
11251110
QString allStart = "19700101000000";
11261111
QString allEnd = QDateTime::currentDateTime().toString("yyyyMMddhhmmss");
11271112
int jobType = JOB_NONE;
11281113
QDir fullfile;
1129-
time_t time_now;
1130-
bool useDB = true;
1131-
bool allRecorded = false;
1132-
bool queueJobInstead = false;
11331114
QString newCutList = QString::null;
11341115

11351116
if (!cmdline.Parse(argc, argv))
@@ -1152,15 +1133,13 @@ int main(int argc, char *argv[])
11521133

11531134
QCoreApplication a(argc, argv);
11541135
QCoreApplication::setApplicationName(MYTH_APPNAME_MYTHCOMMFLAG);
1155-
cerr << "prepping logging" << endl;
11561136
int retval;
11571137
if ((retval = cmdline.ConfigureLogging(
11581138
"important general",
11591139
!cmdline.toBool("noprogress"))) != GENERIC_EXIT_OK)
11601140
return retval;
11611141

11621142
CleanupGuard callCleanup(cleanup);
1163-
cerr << "creating context" << endl;
11641143
gContext = new MythContext(MYTH_BINARY_VERSION);
11651144
if (!gContext->Init( false, /*use gui*/
11661145
false, /*prompt for backend*/
@@ -1170,7 +1149,6 @@ int main(int argc, char *argv[])
11701149
LOG(VB_GENERAL, LOG_EMERG, "Failed to init MythContext, exiting.");
11711150
return GENERIC_EXIT_NO_MYTHCONTEXT;
11721151
}
1173-
cerr << "loading overrides" << endl;
11741152
cmdline.ApplySettingsOverride();
11751153

11761154
MythTranslation::load("mythfrontend");

0 commit comments

Comments
 (0)