From 22c37c1a1a6564eaa588c7859f2cdff132f818bc Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 5 Nov 2008 15:55:53 +0000 Subject: [PATCH] move this to profile debug its harmless mostly git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10250 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_presence.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index bd3f2662f4..0b6c14c5fe 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -1152,7 +1152,9 @@ static int sofia_presence_mwi_callback(void *pArg, int argc, char **argv, char * } if (!(nh = nua_handle_by_call_id(h->profile->nua, call_id))) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Cannot find handle for %s\n", call_id); + if (profile->debug) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Cannot find handle for %s\n", call_id); + } goto end; }