diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-10-20 14:26:51 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-10-20 14:26:51 +0200 |
commit | ce315e5da3b33b107633adad0bcc0fd5fc26d198 (patch) | |
tree | bf1770ece559db1d19c25f39623759687a8a1994 | |
parent | bea330746cd07ce08f9d5d062924bf2c5195d6ee (diff) | |
download | rsyslog-ce315e5da3b33b107633adad0bcc0fd5fc26d198.tar.gz rsyslog-ce315e5da3b33b107633adad0bcc0fd5fc26d198.tar.xz rsyslog-ce315e5da3b33b107633adad0bcc0fd5fc26d198.zip |
minor: slightly improved error reporting when dynafile open fails
-rw-r--r-- | tools/omfile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/omfile.c b/tools/omfile.c index 55801d40..c49a6cd2 100644 --- a/tools/omfile.c +++ b/tools/omfile.c @@ -590,9 +590,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); } |