diff --git a/src/misc.c b/src/misc.c index 37191c6..9ce05bb 100644 --- a/src/misc.c +++ b/src/misc.c @@ -696,7 +696,7 @@ snprintf(buf, sizeof(buf)-1, "%d/%s", session->ttmpfile[0] % session->cfg->number_of_worker_processes, session->ttmpfile); if(rename(session->ttmpfile, buf)){ - syslog(LOG_PRIORITY, "ERROR: couldn't rename %s to %s", session->ttmpfile, buf); + syslog(LOG_PRIORITY, "ERROR: couldn't rename %s to %s (reason: %s)", session->ttmpfile, buf, strerror(errno)); } }