summaryrefslogtreecommitdiffstats
path: root/runtime/stream.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-05-18 17:28:34 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-05-18 17:28:34 +0200
commit93f873277bfe5ebb309ff5e92f5dc7244ebd9f1a (patch)
tree0a1431d8ce318552e83cce38273015c5206155a3 /runtime/stream.c
parentb81311ac70e4de0bd5c0b0286413ff1b527ef906 (diff)
downloadrsyslog-93f873277bfe5ebb309ff5e92f5dc7244ebd9f1a.tar.gz
rsyslog-93f873277bfe5ebb309ff5e92f5dc7244ebd9f1a.tar.xz
rsyslog-93f873277bfe5ebb309ff5e92f5dc7244ebd9f1a.zip
t-delete list implemented, queue store drivers updated...
... on the way to the ultra-reliable queue modes (redesign doc). This version does not really work, but is a good commit point. Next comes queue size calculation. DA mode does not yet work.
Diffstat (limited to 'runtime/stream.c')
-rw-r--r--runtime/stream.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/stream.c b/runtime/stream.c
index f1f69cc8..50d419be 100644
--- a/runtime/stream.c
+++ b/runtime/stream.c
@@ -99,7 +99,10 @@ static rsRetVal strmOpenFile(strm_t *pThis)
pThis->fd = open((char*)pThis->pszCurrFName, iFlags, pThis->tOpenMode);
if(pThis->fd == -1) {
int ierrnoSave = errno;
- dbgoprint((obj_t*) pThis, "open error %d, file '%s'\n", errno, pThis->pszCurrFName);
+ char errStr[1024];
+ dbgoprint((obj_t*) pThis, "open error[%d]: '%s'; file '%s'/%s\n", errno,
+ rs_strerror_r(errno, errStr, sizeof(errStr)), pThis->pszCurrFName,
+ (pThis->tOperationsMode == STREAMMODE_READ) ? "READ" : "WRITE");
if(ierrnoSave == ENOENT)
ABORT_FINALIZE(RS_RET_FILE_NOT_FOUND);
else