[asterisk-commits] trunk r16903 - /trunk/manager.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Apr 1 13:39:34 MST 2006
Author: markster
Date: Sat Apr 1 14:39:33 2006
New Revision: 16903
URL: http://svn.digium.com/view/asterisk?rev=16903&view=rev
Log:
Make excessive debug optional
Modified:
trunk/manager.c
Modified: trunk/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/manager.c?rev=16903&r1=16902&r2=16903&view=diff
==============================================================================
--- trunk/manager.c (original)
+++ trunk/manager.c Sat Apr 1 14:39:33 2006
@@ -872,8 +872,8 @@
}
ast_mutex_unlock(&s->__lock);
s->waiting_thread = pthread_self();
-
- ast_log(LOG_DEBUG, "Starting waiting for an event!\n");
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Starting waiting for an event!\n");
for (x=0;((x<timeout) || (timeout < 0)); x++) {
ast_mutex_lock(&s->__lock);
if (s->eventq)
@@ -892,7 +892,8 @@
sleep(1);
}
}
- ast_log(LOG_DEBUG, "Finished waiting for an event!\n");
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Finished waiting for an event!\n");
ast_mutex_lock(&s->__lock);
if (s->waiting_thread == pthread_self()) {
astman_send_response(s, m, "Success", "Waiting for Event...");
More information about the asterisk-commits
mailing list