diff --git a/eo/src/do/make_checkpoint.h b/eo/src/do/make_checkpoint.h index c06773480..84ef99961 100644 --- a/eo/src/do/make_checkpoint.h +++ b/eo/src/do/make_checkpoint.h @@ -194,14 +194,14 @@ eoCheckPoint& do_make_checkpoint(eoParser& _parser, eoState& _state, eoValu // The monitors /////////////// - // do we want an eoStdoutMonitor? - bool needStdoutMonitor = printBestParam.value() + // do we want an eoOStreamMonitor? + bool needOutMonitor = printBestParam.value() || printPopParam.value() ; - // The Stdout monitor will print parameters to the screen ... - if ( needStdoutMonitor ) + // The monitor will print parameters to the screen ... + if ( needOutMonitor ) { - eoStdoutMonitor *monitor = new eoStdoutMonitor(/*false FIXME remove this deprecated prototype*/); + eoMonitor *monitor = new eoOStreamMonitor(std::clog); _state.storeFunctor(monitor); // when called by the checkpoint (i.e. at every generation) diff --git a/eo/src/utils/eoOStreamMonitor.cpp b/eo/src/utils/eoOStreamMonitor.cpp index edb091690..af2bfcf63 100644 --- a/eo/src/utils/eoOStreamMonitor.cpp +++ b/eo/src/utils/eoOStreamMonitor.cpp @@ -19,7 +19,7 @@ eoMonitor& eoOStreamMonitor::operator()(void) { if (!out) { - std::string str = "eoOStreamMonitor: Could not write to the ooutput stream"; + std::string str = "eoOStreamMonitor: Could not write to the output stream"; throw std::runtime_error(str); }