[asterisk-dev] ast_debug() vs ast_log(LOG_DEBUG, ...) vs ast_log(AST_LOG_DEBUG, ...)

Kirill Katsnelson kkm at adaptiveai.com
Wed Dec 22 18:25:28 UTC 2010


There are 190 invocations of ast_log(LOG_DEBUG,...) on the current trunk 
head, and about 3000 of ast_debug(). Are these 190 not gated by debug 
level on purpose?

I am asking because 1.8 outputs 2 debug lines, want it or not, per every 
call. It was a nice feature in 1.6 to be able to enable or disable debug 
on the fly in 1.6 by just setting "core set debug N" instead of changing 
and reloading logger.conf.

If that was not done on purpose, it would be nice to see that fixed. 
Those 2 printed out of 6 calls to ast_log() in 
ast_set_owners_and_peers() are killing me. I can upload a patch for 
these 6, but thought it might be ideal to get it fixed en masse in all 
200 places -- assuming this is not currently right.

  -kkm



More information about the asterisk-dev mailing list