Merge pull request #2623 from joakim-hove/actionx-pretty-print

Fix prefix with output from schedule parse in ACTIONX mode
This commit is contained in:
Joakim Hove 2021-08-24 07:39:45 +02:00 committed by GitHub
commit 7b2b58caa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,7 +301,7 @@ public:
}
void operator()(const std::string& msg) {
this->log_function(msg);
this->log_function(this->prefix + msg);
}
void info(const std::string& msg) {
@ -316,12 +316,12 @@ public:
void complete_step(const std::string& msg) {
this->step_count += 1;
if (this->step_count == this->max_print) {
this->log_function(msg);
this->log_function(this->prefix + msg);
this->info(std::vector<std::string>{"Report limit reached, see PRT-file for remaining Schedule initialization.", ""});
this->log_function = &OpmLog::note;
} else {
this->log_function( msg );
this->log_function( "" );
this->log_function( this->prefix + msg );
this->log_function( this->prefix );
}
};