diff --git a/compositor/main.c b/compositor/main.c index c1a72701..af31c94e 100644 --- a/compositor/main.c +++ b/compositor/main.c @@ -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)