[svn-commits] file: branch file/bridging r111815 - /team/file/bridging/main/bridging.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Mar 28 15:12:13 CDT 2008


Author: file
Date: Fri Mar 28 15:12:12 2008
New Revision: 111815

URL: http://svn.digium.com/view/asterisk?view=rev&rev=111815
Log:
Goodbye last remnants of LOG_DEBUG.

Modified:
    team/file/bridging/main/bridging.c

Modified: team/file/bridging/main/bridging.c
URL: http://svn.digium.com/view/asterisk/team/file/bridging/main/bridging.c?view=diff&rev=111815&r1=111814&r2=111815
==============================================================================
--- team/file/bridging/main/bridging.c (original)
+++ team/file/bridging/main/bridging.c Fri Mar 28 15:12:12 2008
@@ -308,8 +308,9 @@
 	}
 	AST_RWLIST_UNLOCK(&bridge_technologies);
 
-	if (option_debug && best)
-		ast_log(LOG_DEBUG, "Chose bridge technology %s\n", best->name);
+	if (best) {
+		ast_debug(1, "Chose bridge technology %s\n", best->name);
+	}
 
 	return best;
 }
@@ -432,7 +433,7 @@
 		if (option_debug) {
 			char codec_buf[512];
 			ast_getformatname_multiple(codec_buf, sizeof(codec_buf), bridge->technology->formats);
-			ast_log(LOG_DEBUG, "Bridge technology %s wants to read any of formats %s(%d) but channel has %s(%d)\n", bridge->technology->name, codec_buf, bridge->technology->formats, ast_getformatname(formats[0]), formats[0]);
+			ast_debug(1, "Bridge technology %s wants to read any of formats %s(%d) but channel has %s(%d)\n", bridge->technology->name, codec_buf, bridge->technology->formats, ast_getformatname(formats[0]), formats[0]);
 		}
 		/* Switch read format to the best one chosen */
 		if (ast_set_read_format(bridge_channel->chan, best_format)) {
@@ -450,7 +451,7 @@
 		if (option_debug) {
 			char codec_buf[512];
 			ast_getformatname_multiple(codec_buf, sizeof(codec_buf), bridge->technology->formats);
-			ast_log(LOG_DEBUG, "Bridge technology %s wants to write any of formats %s(%d) but channel has %s(%d)\n", bridge->technology->name, codec_buf, bridge->technology->formats, ast_getformatname(formats[1]), formats[1]);
+			ast_debug(1, "Bridge technology %s wants to write any of formats %s(%d) but channel has %s(%d)\n", bridge->technology->name, codec_buf, bridge->technology->formats, ast_getformatname(formats[1]), formats[1]);
 		}
 		/* Switch write format to the best one chosen */
 		if (ast_set_write_format(bridge_channel->chan, best_format)) {




More information about the svn-commits mailing list