summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-11-08 18:02:23 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-11-08 18:02:23 +0100
commitb05d4a6db4cc7a0e7a8f4efdb30c784f51b15f2e (patch)
treec19620c123c74c32c016cc0496cb97fb1af071c9 /template.c
parent8995034e5a17f58445b69fe97b64ba5c46b5dccf (diff)
downloadrsyslog-b05d4a6db4cc7a0e7a8f4efdb30c784f51b15f2e.tar.gz
rsyslog-b05d4a6db4cc7a0e7a8f4efdb30c784f51b15f2e.tar.bz2
rsyslog-b05d4a6db4cc7a0e7a8f4efdb30c784f51b15f2e.zip
bugfix: no error msg on invalid field option in legacy/string template
Diffstat (limited to 'template.c')
-rw-r--r--template.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/template.c b/template.c
index f62e8453..68c4f539 100644
--- a/template.c
+++ b/template.c
@@ -666,7 +666,8 @@ static void doOptions(unsigned char **pp, struct templateEntry *pTpe)
} else if(!strcmp((char*)Buf, "mandatory-field")) {
pTpe->data.field.options.bMandatory = 1;
} else {
- dbgprintf("Invalid field option '%s' specified - ignored.\n", Buf);
+ errmsg.LogError(0, NO_ERRCODE, "template error: invalid field option '%s' "
+ "specified - ignored", Buf);
}
}