mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-29 21:48:17 +02:00
compositor: Print error opening log file
When failing to open the log file nothing is reported to the user, therefore we print a message on stderr when that happens. Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com> Suggested-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
50aa3a76c0
commit
fdc9b4bce5
1 changed files with 2 additions and 0 deletions
|
|
@ -180,6 +180,8 @@ weston_log_file_open(const char *filename)
|
|||
weston_logfile = fopen(filename, "a");
|
||||
if (weston_logfile)
|
||||
os_fd_set_cloexec(fileno(weston_logfile));
|
||||
else
|
||||
fprintf(stderr, "Failed to open %s: %s\n", filename, strerror(errno));
|
||||
}
|
||||
|
||||
if (weston_logfile == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue