summaryrefslogtreecommitdiffstats
path: root/runtime/srutils.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-01 07:33:09 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-01 07:33:09 +0100
commit2c39f76037328459c5cff14762e0839b1e77d570 (patch)
tree73916a3373e27b3ce8d474348a9d9bdb304165f1 /runtime/srutils.c
parentf12a1995e42d098217fef22cba6e7158ed76e635 (diff)
downloadrsyslog-2c39f76037328459c5cff14762e0839b1e77d570.tar.gz
rsyslog-2c39f76037328459c5cff14762e0839b1e77d570.tar.xz
rsyslog-2c39f76037328459c5cff14762e0839b1e77d570.zip
make $ActonFileDefaultTemplate available to ompipe
This was not honored by the new ompipe module, because it is a local file directive (it was applied to pipes as a side-effect of using the same module for pipes and files...). I now made this a global, so that semantics are the same as previously. Not really nice, but probably the best thing to do in the current situation (everything else would involve much more overhead --- leave that for the new config system).
Diffstat (limited to 'runtime/srutils.c')
-rw-r--r--runtime/srutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/srutils.c b/runtime/srutils.c
index c403b312..4bd552da 100644
--- a/runtime/srutils.c
+++ b/runtime/srutils.c
@@ -500,12 +500,14 @@ int decodeSyslogName(uchar *name, syslogName_t *codetab)
for (p = buf; *p; p++)
if (isupper((int) *p))
*p = tolower((int) *p);
+dbgprintf("obtained syslogName '%s'\n", buf);
for (c = codetab; c->c_name; c++)
if (!strcmp((char*) buf, (char*) c->c_name))
{
dbgprintf(" ==> %d\n", c->c_val);
return (c->c_val);
}
+dbgprintf("syslogName '%s' NOT found!\n", buf);
return (-1);
}