From: Kinsey Moore Date: Thu, 17 Oct 2013 15:36:50 +0000 (+0000) Subject: Reduce log level of a non-pubsub error message X-Git-Tag: 11.7.0-rc1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75ec0df0a01ccf8a654f989915cefa42dd582f8d;p=thirdparty%2Fasterisk.git Reduce log level of a non-pubsub error message Drop an error log message to debug level 1 since distributed device state functions correctly when receiving this message and it spams the logs. (closes issue ASTERISK-22410) Reported by: abelbeck Patches: asterisk-1.8-res_jabber-log-nonpubsub-error-to-debug.patch uploaded by abelbeck (License 5903) asterisk-11-res_xmpp-log-nonpubsub-error-to-debug.patch uploaded by abelbeck (License 5903) ........ Merged revisions 401119 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@401120 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_jabber.c b/res/res_jabber.c index b7c62cbb2c..72195f22fa 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -3567,7 +3567,7 @@ static int aji_handle_pubsub_error(void *data, ikspak *pak) iks *orig_pubsub = iks_find(pak->x, "pubsub"); struct aji_client *client; if (!orig_pubsub) { - ast_log(LOG_ERROR, "Error isn't a PubSub error, why are we here?\n"); + ast_debug(1, "Error isn't a PubSub error, why are we here?\n"); return IKS_FILTER_EAT; } orig_request = iks_child(orig_pubsub); diff --git a/res/res_xmpp.c b/res/res_xmpp.c index 3425be620a..b5d0e8a88c 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -1382,7 +1382,7 @@ static int xmpp_pubsub_handle_error(void *data, ikspak *pak) } if (!orig_pubsub) { - ast_log(LOG_ERROR, "Error isn't a PubSub error, why are we here?\n"); + ast_debug(1, "Error isn't a PubSub error, why are we here?\n"); return IKS_FILTER_EAT; }