summaryrefslogtreecommitdiffstats
path: root/tools/omfile.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-10-21 14:47:18 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-10-21 14:47:18 +0200
commitf3d4d83ce5a921899775eb59997d9d954b2f423d (patch)
treebb4af3cf3eea8733efa7ffd29586e23b54f1ff23 /tools/omfile.c
parentbb293ca32a1b9750d53e9d6fdcf21a9d6d7c697d (diff)
parent5d67d98c35da731eab933dbfd858a0e009aa58de (diff)
downloadrsyslog-f3d4d83ce5a921899775eb59997d9d954b2f423d.tar.gz
rsyslog-f3d4d83ce5a921899775eb59997d9d954b2f423d.tar.xz
rsyslog-f3d4d83ce5a921899775eb59997d9d954b2f423d.zip
Merge branch 'v5-stable' into beta
Conflicts: ChangeLog configure.ac doc/manual.html
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 d4e8c20b..5a8848e6 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -602,9 +602,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);
}