diff options
author | Mark Spencer <markster@digium.com> | 2006-04-01 20:39:33 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2006-04-01 20:39:33 +0000 |
commit | c1d5485fe432cb9b1152611947354ee654a61418 (patch) | |
tree | 4074c2e889428af466880f1b78c3382fce02c04e /manager.c | |
parent | 872fe43af1df74b2310e9eb0414d53a6bceba4eb (diff) |
Make excessive debug optional
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'manager.c')
-rw-r--r-- | manager.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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<timeout) || (timeout < 0)); x++) { ast_mutex_lock(&s->__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..."); |