summaryrefslogtreecommitdiffstats
path: root/tools/omfile.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-10-21 14:42:32 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-10-21 14:42:32 +0200
commit12102199c4b3a042fb91e1d52eb274f06e62213e (patch)
tree6e8d19a7a004bcc3fb03c2290a630281a846ff86 /tools/omfile.c
parente61672c6932868d6b09ad0ae8453dc91c545742f (diff)
parent5d67d98c35da731eab933dbfd858a0e009aa58de (diff)
downloadrsyslog-12102199c4b3a042fb91e1d52eb274f06e62213e.tar.gz
rsyslog-12102199c4b3a042fb91e1d52eb274f06e62213e.tar.xz
rsyslog-12102199c4b3a042fb91e1d52eb274f06e62213e.zip
Merge branch 'v5-stable' into v5-devel
Conflicts: ChangeLog configure.ac doc/manual.html runtime/rsyslog.h
Diffstat (limited to 'tools/omfile.c')
-rw-r--r--tools/omfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index dcb09faf..c5e9b36b 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -579,9 +579,10 @@ prepareDynFile(instanceData *pData, uchar *newFileName, unsigned iMsgOpts)
* news is that we also lose errors on startup messages, but so it is.
*/
if(iMsgOpts & INTERNAL_MSG) {
- DBGPRINTF("Could not open dynaFile, discarding message\n");
+ DBGPRINTF("Could not open dynaFile '%s', state %d, discarding message\n",
+ newFileName, localRet);
} else {
- errmsg.LogError(0, NO_ERRCODE, "Could not open dynamic file '%s' [state %d] - discarding message", newFileName, localRet);
+ errmsg.LogError(0, localRet, "Could not open dynamic file '%s' [state %d] - discarding message", newFileName, localRet);
}
ABORT_FINALIZE(localRet);
}