mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 07:18:01 +02:00
main: log when boot.log fails to open
This commit is contained in:
parent
350764ae84
commit
9b350e2f36
1 changed files with 6 additions and 1 deletions
|
|
@ -768,8 +768,13 @@ prepare_logging (state_t *state)
|
|||
logfile = get_log_file_for_mode (state->mode);
|
||||
if (logfile != NULL)
|
||||
{
|
||||
bool log_opened;
|
||||
ply_trace ("opening log '%s'", logfile);
|
||||
ply_terminal_session_open_log (state->session, logfile);
|
||||
|
||||
log_opened = ply_terminal_session_open_log (state->session, logfile);
|
||||
|
||||
if (!log_opened)
|
||||
ply_trace ("failed to open log: %m");
|
||||
|
||||
if (state->number_of_errors > 0)
|
||||
spool_error (state);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue