summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-10-21 15:03:53 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-10-21 15:03:53 +0200
commite7701775553a60efb050b0df497bb4df5df46d62 (patch)
tree5e8183f6bbb33e106624e8c9d9c3eab7a7006de9 /tools
parent359ddad3c5dce82ab48964c1d8b804c4155ea39c (diff)
parent12102199c4b3a042fb91e1d52eb274f06e62213e (diff)
downloadrsyslog-e7701775553a60efb050b0df497bb4df5df46d62.tar.gz
rsyslog-e7701775553a60efb050b0df497bb4df5df46d62.tar.xz
rsyslog-e7701775553a60efb050b0df497bb4df5df46d62.zip
Merge branch 'v5-devel'
Conflicts: ChangeLog
Diffstat (limited to 'tools')
-rw-r--r--tools/omfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index cad8ae80..05b82051 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -614,9 +614,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);
}