aboutsummaryrefslogtreecommitdiffstats
path: root/src/Log.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Log.cxx')
-rw-r--r--src/Log.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Log.cxx b/src/Log.cxx
index 96ac106cc..37bff9c78 100644
--- a/src/Log.cxx
+++ b/src/Log.cxx
@@ -21,6 +21,7 @@
#include "Log.hxx"
#include "conf.h"
#include "fd_util.h"
+#include "FatalError.hxx"
#include "mpd_error.h"
#include <assert.h>
@@ -60,9 +61,9 @@ static void redirect_logs(int fd)
{
assert(fd >= 0);
if (dup2(fd, STDOUT_FILENO) < 0)
- MPD_ERROR("problems dup2 stdout : %s\n", strerror(errno));
+ FatalSystemError("Failed to dup2 stdout");
if (dup2(fd, STDERR_FILENO) < 0)
- MPD_ERROR("problems dup2 stderr : %s\n", strerror(errno));
+ FatalSystemError("Failed to dup2 stderr");
}
static const char *log_date(void)