If started with debug, log it to boot.log

calculate-0.9.5
Ray Strode 16 years ago
parent 99f9d7fa69
commit aec6642fd8

@ -587,9 +587,14 @@ check_verbosity (state_t *state)
|| (strstr (state->kernel_command_line, "plymouth:debug ") != NULL)
|| (strstr (state->kernel_command_line, " plymouth:debug") != NULL))
{
int fd;
ply_trace ("tracing should be enabled!");
if (!ply_is_tracing ())
ply_toggle_tracing ();
fd = open ("/dev/console", O_RDWR);
ply_logger_set_output_fd (ply_logger_get_error_default (), fd);
}
else
ply_trace ("tracing shouldn't be enabled!");

Loading…
Cancel
Save