summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2021-03-27 13:20:29 +0100
committerHans de Goede <hdegoede@redhat.com>2021-03-29 09:25:29 +0200
commit8291d668aeab257ed6b74c81128b011715157c27 (patch)
treec7a3f662bd576c7031a5690816722373318e86d3
parentca869a3fff761ea014e87db63c631fb85d968d91 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 0ad34fc4..122cb734 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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");