[Serusers] SER 0.9.6 and xlog + syslog

Cesc Santa cesc.santa at gmail.com
Mon Jul 23 11:07:37 CEST 2007


Hi,

I just came across a strange "feature" in xlog for ser 0.9.6.
When I send output to stderr, no problem ... but using the same config
and sending to syslog, some xlog output gets trunkated :O

I have these lines in my config:
      	xlog( "L_NOTICE",
"============================================================\n");
	xlog( "L_NOTICE", "==[%Tf]\n" );
	xlog( "L_NOTICE", "==[%is ## %pp]\n==\n" );
	
	#Print the whole received SIP message buffer ...
	xlog( "L_NOTICE", "\n%mb\n\n");

And this is what I get in /var/log/messages:
Jul 23 01:45:09 FC3lara /usr/local/sbin/cafesRouter[21957]:
=====================================
Jul 23 01:45:09 ser[21957]: ==[Mon Jul 23 01:45:09 2007]
Jul 23 01:45:09 ser[21957]: ==[192.168.200.141 ## 21957] ==
   ntent-Length: 0ne/1.65.377a (SJ Labs)000000;rport2.0

As you can see, the part of xlog which prints the sip message gets
truncated ... it only prints the last part (ntent-Length .... ).

Ideas?

Cesc



More information about the sr-users mailing list