[asterisk-commits] trunk - r7294 /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Dec 2 17:52:01 CST 2005


Author: mattf
Date: Fri Dec  2 17:52:00 2005
New Revision: 7294

URL: http://svn.digium.com/view/asterisk?rev=7294&view=rev
Log:
Fix all the warnings and errors for PRI to go to more logical places

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=7294&r1=7293&r2=7294&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Fri Dec  2 17:52:00 2005
@@ -7890,13 +7890,13 @@
 		}
 		if ((dchan >= 0) && (span >= 0)) {
 			if (dchancount > 1)
-				ast_verbose("[Span %d D-Channel %d]%s", span, dchan, s);
+				ast_log(LOG_DEBUG, "[Span %d D-Channel %d]%s", span, dchan, s);
 			else
-				ast_verbose("%s", s);
+				ast_log(LOG_DEBUG, "%s", s);
 		} else
-			ast_verbose("PRI debug error: could not find pri associated it with debug message output\n");
+			ast_log(LOG_ERROR, "PRI debug error: could not find pri associated it with debug message output\n");
 	} else
-		ast_verbose("%s", s);
+		ast_log(LOG_DEBUG, "%s", s);
 
 	ast_mutex_lock(&pridebugfdlock);
 
@@ -7929,13 +7929,13 @@
 		}
 		if ((dchan >= 0) && (span >= 0)) {
 			if (dchancount > 1)
-				ast_log(LOG_WARNING, "[Span %d D-Channel %d] PRI: %s", span, dchan, s);
+				ast_log(LOG_ERROR, "[Span %d D-Channel %d] PRI: %s", span, dchan, s);
 			else
-				ast_verbose("%s", s);
+				ast_log(LOG_ERROR, "%s", s);
 		} else
-			ast_verbose("PRI debug error: could not find pri associated it with debug message output\n");
+			ast_log(LOG_ERROR, "PRI debug error: could not find pri associated it with debug message output\n");
 	} else
-		ast_log(LOG_WARNING, "%s", s);
+		ast_log(LOG_ERROR, "%s", s);
 
 	ast_mutex_lock(&pridebugfdlock);
 



More information about the asterisk-commits mailing list