]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Don't log debug msgs to file with plymouth:debug
authorRay Strode <rstrode@redhat.com>
Mon, 10 Nov 2008 16:09:35 +0000 (11:09 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 10 Nov 2008 16:13:15 +0000 (11:13 -0500)
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

src/main.c

index cb2022485a0dbc987fb3e33170b337fa41831b3a..71a07c88ef189f9ea53c173566c955fc089435c4 100644 (file)
@@ -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!");