diff options
author | Hans de Goede <hdegoede@redhat.com> | 2021-03-27 13:20:29 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-03-29 09:25:29 +0200 |
commit | 8291d668aeab257ed6b74c81128b011715157c27 (patch) | |
tree | c7a3f662bd576c7031a5690816722373318e86d3 | |
parent | ca869a3fff761ea014e87db63c631fb85d968d91 (diff) |
main: Redirect stdio/stderr to null when tracing to a file
When the user has chosen to enable tracing to a file, so that the terminal
output stays the same as when not tracing, we should still redirect
tdio/stderr to /dev/null as we do when not tracing.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1976,7 +1976,7 @@ initialize_environment (state_t *state) state->entry_buffer = ply_buffer_new (); state->messages = ply_list_new (); - if (!ply_is_tracing ()) + if (!ply_is_tracing_to_terminal ()) redirect_standard_io_to_dev_null (); ply_trace ("Making sure " PLYMOUTH_RUNTIME_DIR " exists"); |