diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-07-18 14:51:49 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-07-18 14:51:49 +0200 |
commit | d45a286f2dee3c3d5aefef1ac16a02578c95f574 (patch) | |
tree | 9a6dc8ff9fbf7feea6db3eb4a17f0c21c2efb9fb /template.c | |
parent | c01ed77e5085baec0ad0a8c6ffcb32f11b6939e8 (diff) | |
parent | 73abfd1fad59ffc426072bac779e4c0f4c712619 (diff) | |
download | rsyslog-d45a286f2dee3c3d5aefef1ac16a02578c95f574.tar.gz rsyslog-d45a286f2dee3c3d5aefef1ac16a02578c95f574.tar.xz rsyslog-d45a286f2dee3c3d5aefef1ac16a02578c95f574.zip |
Merge branch 'v3-stable' into beta
Conflicts:
doc/property_replacer.html
tools/syslogd.c
Diffstat (limited to 'template.c')
-rw-r--r-- | template.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -446,6 +446,8 @@ static void doOptions(unsigned char **pp, struct templateEntry *pTpe) pTpe->data.field.eCaseConv = tplCaseConvLower; } else if(!strcmp((char*)Buf, "uppercase")) { pTpe->data.field.eCaseConv = tplCaseConvUpper; + } else if(!strcmp((char*)Buf, "sp-if-no-1st-sp")) { + pTpe->data.field.options.bSPIffNo1stSP = 1; } else if(!strcmp((char*)Buf, "escape-cc")) { pTpe->data.field.options.bEscapeCC = 1; } else if(!strcmp((char*)Buf, "drop-cc")) { @@ -1085,6 +1087,15 @@ void tplPrintList(void) if(pTpe->data.field.options.bSpaceCC) { dbgprintf("[replace control-characters with space] "); } + if(pTpe->data.field.options.bSecPathDrop) { + dbgprintf("[slashes are dropped] "); + } + if(pTpe->data.field.options.bSecPathReplace) { + dbgprintf("[slashes are replaced by '_'] "); + } + if(pTpe->data.field.options.bSPIffNo1stSP) { + dbgprintf("[SP iff no first SP] "); + } if(pTpe->data.field.options.bDropLastLF) { dbgprintf("[drop last LF in msg] "); } |