diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-18 09:15:04 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-18 09:15:04 +0200 |
commit | 8f7a5adde89d70d96e812d510e531014119deb4c (patch) | |
tree | 01c87276c63862857f3ad347948f6eec6c34053c | |
parent | 2fe58f67a97acb0aa0c2b30c784c2dc984c1e38a (diff) | |
download | rsyslog-8f7a5adde89d70d96e812d510e531014119deb4c.tar.gz rsyslog-8f7a5adde89d70d96e812d510e531014119deb4c.tar.bz2 rsyslog-8f7a5adde89d70d96e812d510e531014119deb4c.zip |
include invalid property name in property filter error message
-rw-r--r-- | runtime/conf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/conf.c b/runtime/conf.c index c3c7e447..3d788cf4 100644 --- a/runtime/conf.c +++ b/runtime/conf.c @@ -486,10 +486,9 @@ rsRetVal DecodePRIFilter(uchar *pline, uchar pmask[]) } -/* Helper to cfline(). This function takes the filter part of a property +/* This function takes the filter part of a property * based filter and decodes it. It processes the line up to the beginning - * of the action part. A pointer to that beginnig is passed back to the caller. - * rgerhards 2005-09-15 + * of the action part. */ rsRetVal DecodePropFilter(uchar *pline, struct cnfstmt *stmt) { @@ -518,7 +517,8 @@ rsRetVal DecodePropFilter(uchar *pline, struct cnfstmt *stmt) } iRet = propNameToID(pCSPropName, &stmt->d.s_propfilt.propID); if(iRet != RS_RET_OK) { - errmsg.LogError(0, iRet, "error %d parsing filter property - ignoring selector", iRet); + errmsg.LogError(0, iRet, "invalid property name '%s' in filter", + cstrGetSzStrNoNULL(pCSPropName)); rsParsDestruct(pPars); return(iRet); } |