aboutsummaryrefslogtreecommitdiffstats
path: root/main/manager.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-27 08:10:43 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-27 08:10:43 +0000
commit330d05c4f8baccb81614e3c5e918738425e668df (patch)
tree0b697c72469fbe504a4ebe576f5ce824e8346670 /main/manager.c
parent0f829e756d59b99eeb13a46d2f6dd84f2aec949c (diff)
Issue #9608 - fix some annoying DEBUG messages not controlled by option_debug (DEA). Thanks!
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@62095 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/manager.c')
-rw-r--r--main/manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c
index e364fcfdb..07458a506 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1989,7 +1989,8 @@ static int process_message(struct mansession *s, const struct message *m)
int ret = 0;
ast_copy_string(action, astman_get_header(m, "Action"), sizeof(action));
- ast_log( LOG_DEBUG, "Manager received command '%s'\n", action );
+ if (option_debug)
+ ast_log( LOG_DEBUG, "Manager received command '%s'\n", action );
if (ast_strlen_zero(action)) {
astman_send_error(s, m, "Missing action in request");