thank you the change made things start to work.
Out of curiosity why was it necessary to change the log level to "1" according to the module webpage 1 is for warning messages. in my log file they show up as
NOTICE: benchmark [benchmark.c:351]: _bm_log_timer(): benchmark (timer test [0]): 1041 [ msgs/total/min/max/avg - LR: 100/107481/694/1830/1074.810000 | GB: 100/107481/694/1830/1074.810000]
if i set the log level as 2 for 2 - L_NOTICE INFO: benchmark [benchmark.c:351]: _bm_log_timer(): benchmark (timer grr [0]): 960 [ msgs/total/min/max/avg - LR: 100/96361/835/1265/963.610000 | GB: 1000/982959/664/3033/982.959000]
for any one else trying i also had to increase the allowable size of log files and the amount of rotate files
Date: Mon, 3 Nov 2014 11:38:15 +0100 From: miconda@gmail.com To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] benchmark module
Hello,
On 03/11/14 04:25, bob sacamano wrote:
hello, i was wondering where does this module write the logs? Nothing shows up in my syslog. If i replace the benchmark parts in the route with xlog for example xlog( "L_INFO", "$Ts " ); this shows up fine in syslog
heres what u have in my config file:
modparam("benchmark", "enable", 1)
modparam("benchmark", "granularity", 100)
modparam("benchmark", "loglevel", 3)
if(is_method("REGISTER"))
{
bm_start_timer("test");
save("location");
bm_log_timer("test");
exit;
}
I have been searching but cant find any info on it
you have:
modparam("benchmark", "loglevel", 3)
Set that to lower value, like:
modparam("benchmark", "loglevel", 1)
Cheers,
Daniel
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Nov 24-27, Berlin - http://www.asipto.com
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users