[asterisk-commits] russell: branch 1.4 r268203 - /branches/1.4/main/logger.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 4 16:40:56 CDT 2010


Author: russell
Date: Fri Jun  4 16:40:53 2010
New Revision: 268203

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=268203
Log:
Get rid of a warning that gets printed out when the console is configured without any logger levels

Modified:
    branches/1.4/main/logger.c

Modified: branches/1.4/main/logger.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/logger.c?view=diff&rev=268203&r1=268202&r2=268203
==============================================================================
--- branches/1.4/main/logger.c (original)
+++ branches/1.4/main/logger.c Fri Jun  4 16:40:53 2010
@@ -147,7 +147,10 @@
 	char *stringp = s;
 
 	while ((w = strsep(&stringp, ","))) {
-		w = ast_skip_blanks(w);
+		w = ast_strip(w);
+		if (ast_strlen_zero(w)) {
+			continue;
+		}
 		if (!strcasecmp(w, "error")) 
 			res |= (1 << __LOG_ERROR);
 		else if (!strcasecmp(w, "warning"))




More information about the asterisk-commits mailing list