[asterisk-commits] kpfleming: trunk r269707 - /trunk/main/logger.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 10 07:28:21 CDT 2010


Author: kpfleming
Date: Thu Jun 10 07:28:17 2010
New Revision: 269707

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=269707
Log:
Ensure that 'logger show channels' works properly when wildcards are used in logger.conf.


Modified:
    trunk/main/logger.c

Modified: trunk/main/logger.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/logger.c?view=diff&rev=269707&r1=269706&r2=269707
==============================================================================
--- trunk/main/logger.c (original)
+++ trunk/main/logger.c Thu Jun 10 07:28:17 2010
@@ -730,7 +730,7 @@
 			chan->disabled ? "Disabled" : "Enabled");
 		ast_cli(a->fd, " - ");
 		for (level = 0; level < ARRAY_LEN(levels); level++) {
-			if (chan->logmask & (1 << level)) {
+			if ((chan->logmask & (1 << level)) && levels[level]) {
 				ast_cli(a->fd, "%s ", levels[level]);
 			}
 		}




More information about the asterisk-commits mailing list