Skip to content

Commit 45b7915

Browse files
authored
Merge pull request #2809 from jjhursey/fix/ibm/opal-verbose
opal/output: Make sure verbose gets updated when id 0 gets updated.
2 parents 5fcd69d + 2596983 commit 45b7915

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

opal/util/output.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,18 @@ static int do_open(int output_id, opal_output_stream_t * lds)
689689
info[i].ldi_file_num_lines_lost = 0;
690690
}
691691

692+
/* Special case: output_id == 0 == verbose_stream
693+
* This is the verbose stream, so update the internal 'verbose_stream'
694+
* to match the parameters set in the info[i]
695+
*/
696+
if( verbose_stream == i ) {
697+
verbose.lds_want_syslog = info[i].ldi_syslog;
698+
verbose.lds_syslog_priority = info[i].ldi_syslog_priority;
699+
verbose.lds_syslog_ident = info[i].ldi_syslog_ident;
700+
verbose.lds_want_stdout = info[i].ldi_stdout;
701+
verbose.lds_want_stderr = info[i].ldi_stderr;
702+
}
703+
692704
/* Don't open a file in the session directory now -- do that lazily
693705
* so that if there's no output, we don't have an empty file */
694706

0 commit comments

Comments
 (0)