From: Ray Strode Date: Mon, 27 Jan 2014 17:29:06 +0000 (-0500) Subject: main: log when boot.log fails to open X-Git-Tag: 0.9.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b350e2f3644aa5e87587f9b9b54e021785667fb;p=thirdparty%2Fplymouth.git main: log when boot.log fails to open --- diff --git a/src/main.c b/src/main.c index 7dbe47cf..b82d2c15 100644 --- a/src/main.c +++ b/src/main.c @@ -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);