log: print reason for failure
This commit is contained in:
parent
0a218ee56a
commit
a727d0bb0b
1
NEWS
1
NEWS
|
@ -4,6 +4,7 @@ ver 0.16.6 (2010/??/??)
|
||||||
* encoder:
|
* encoder:
|
||||||
- flac, null, wave: fix buffer corruption bug
|
- flac, null, wave: fix buffer corruption bug
|
||||||
- wave: support packed 24 bit samples
|
- wave: support packed 24 bit samples
|
||||||
|
* log: print reason for failure
|
||||||
* event_pipe: fix WIN32 regression
|
* event_pipe: fix WIN32 regression
|
||||||
* define WINVER in ./configure
|
* define WINVER in ./configure
|
||||||
* WIN32: autodetect filesystem encoding
|
* WIN32: autodetect filesystem encoding
|
||||||
|
|
|
@ -139,8 +139,8 @@ log_init_file(const char *path, unsigned line)
|
||||||
out_filename = path;
|
out_filename = path;
|
||||||
out_fd = open_log_file();
|
out_fd = open_log_file();
|
||||||
if (out_fd < 0)
|
if (out_fd < 0)
|
||||||
MPD_ERROR("problem opening log file \"%s\" (config line %u) "
|
MPD_ERROR("failed to open log file \"%s\" (config line %u): %s",
|
||||||
"for writing\n", path, line);
|
path, line, g_strerror(errno));
|
||||||
|
|
||||||
g_log_set_default_handler(file_log_func, NULL);
|
g_log_set_default_handler(file_log_func, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue