[syslog-ng][PATCH] syslog-ng-1.6.5+20041206 fixes missing facility/priority in afinet.c

Roberto Nibali syslog-ng@lists.balabit.hu
Mon, 13 Dec 2004 15:34:10 +0100


ADDENDUM:

> Look, to me it looks like maybe msg-pri is not available at the 
> expansion time. Maybe I also did something extremely stupid but I 
> honestly have no time to debug it any further right now and the patch 
> I've sent earlier solves my problem.
> 
> I'll check once again though to see if I really missed something obvious 
> :).

Ok, now I've found out that something is fishy with find_macro(). It doesn't 
find the PRI tag. My DEBUG output:

DEBUG: beginning of macro: H|O|S|T|
DEBUG: Found macro 'HOST'
DEBUG: this is the id '440'
DEBUG: beginning of macro: M|S|G|
DEBUG: Found macro 'MSG'
DEBUG: this is the id '480'
DEBUG: beginning of macro: D|A|T|E|
DEBUG: Found macro 'DATE'
DEBUG: this is the id '30'
DEBUG: beginning of macro: P|R|I|
DEBUG: macro not found
DEBUG: beginning of macro: T|A|G|
DEBUG: Found macro 'TAG'
DEBUG: this is the id '20'
DEBUG: I'm in M_TAG in macros.c

This is with libol-0.3.14. I'm adding some more debugging to find_macro().

Cheers,
Roberto Nibali, ratz
-- 
-------------------------------------------------------------
addr://Rathausgasse 31, CH-5001 Aarau  tel://++41 62 823 9355
http://www.terreactive.com             fax://++41 62 823 9356
-------------------------------------------------------------
terreActive AG                       Wir sichern Ihren Erfolg
-------------------------------------------------------------