diff options
author | Ray Strode <rstrode@redhat.com> | 2008-11-10 11:09:35 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2008-11-10 11:13:15 -0500 |
commit | b67ba5977e1c82476c65ef2d953b6e962fecd614 (patch) | |
tree | 2ca5fd8c9cf663eb6b6f58d246e16da186abf777 | |
parent | 85f15f2f5e84e71c019b966217161f71bad55156 (diff) |
Don't log debug msgs to file with plymouth:debug
It creates a feedback loop. We'll need to cut
that first before we can log to boot.log.
What'd I'd like to do is have several log targets
plymouth:log=boot.log or plymouth:log=/dev/ttyS0,
or plymouth:log=/dev/tty0
-rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -636,14 +636,18 @@ check_verbosity (state_t *state) || (strstr (state->kernel_command_line, "plymouth:debug ") != NULL) || (strstr (state->kernel_command_line, " plymouth:debug") != NULL)) { +#ifdef LOG_TO_DEBUG_FILE int fd; +#endif ply_trace ("tracing should be enabled!"); if (!ply_is_tracing ()) ply_toggle_tracing (); +#ifdef LOG_TO_DEBUG_FILE fd = open ("/dev/console", O_RDWR); ply_logger_set_output_fd (ply_logger_get_error_default (), fd); +#endif } else ply_trace ("tracing shouldn't be enabled!"); |