Skip to content

Commit 2596983

Browse files
committed
opal/output: Make sure verbose gets updated when id 0 gets updated.
- This allows the following MCA option to have an impact on the framework verbose output as well. * `-mca mca_base_verbose stdout` Signed-off-by: Joshua Hursey <[email protected]>
1 parent c6595c2 commit 2596983

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

opal/util/output.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* reserved.
1616
* Copyright (c) 2015 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
18+
* Copyright (c) 2017 IBM Corporation. All rights reserved.
1819
* $COPYRIGHT$
1920
*
2021
* Additional copyrights may follow
@@ -682,6 +683,18 @@ static int do_open(int output_id, opal_output_stream_t * lds)
682683
info[i].ldi_file_num_lines_lost = 0;
683684
}
684685

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

0 commit comments

Comments
 (0)