From 0bc4374f9b87587027a700c53ad037e71892b168 Mon Sep 17 00:00:00 2001 From: markster Date: Sat, 1 Apr 2006 20:39:33 +0000 Subject: [PATCH] Make excessive debug optional git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16903 f38db490-d61c-443f-a65b-d21fe96a405b --- manager.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manager.c b/manager.c index b2d4964c5..7615a4bc8 100644 --- a/manager.c +++ b/manager.c @@ -872,8 +872,8 @@ static int action_waitevent(struct mansession *s, struct message *m) } 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__lock); if (s->eventq) @@ -892,7 +892,8 @@ static int action_waitevent(struct mansession *s, struct message *m) 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...");