summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-11-08 18:02:37 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-11-08 18:02:37 +0100
commit12a410157346e6b970293bfe1d4b77a9eb0aacdb (patch)
tree352428ed8db6ff6f51c29f5086490a8b0834262c /template.c
parent00edf1573fc240a78e2516b0945ce41167c5977d (diff)
parentb05d4a6db4cc7a0e7a8f4efdb30c784f51b15f2e (diff)
downloadrsyslog-12a410157346e6b970293bfe1d4b77a9eb0aacdb.tar.gz
rsyslog-12a410157346e6b970293bfe1d4b77a9eb0aacdb.tar.bz2
rsyslog-12a410157346e6b970293bfe1d4b77a9eb0aacdb.zip
Merge branch 'v6-stable' into v7-stable
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 e8b95da3..9c24f2a9 100644
--- a/template.c
+++ b/template.c
@@ -731,7 +731,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);
}
}