]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Reduce log level of a non-pubsub error message
authorKinsey Moore <kmoore@digium.com>
Thu, 17 Oct 2013 15:40:20 +0000 (15:40 +0000)
committerKinsey Moore <kmoore@digium.com>
Thu, 17 Oct 2013 15:40:20 +0000 (15:40 +0000)
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
........

Merged revisions 401120 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@401121 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_jabber.c
res/res_xmpp.c

index c1cee9b7aefdf4ea2e2d092cb130b94c6c18c9d8..798ff4b5a50fb4a9668af4099ee59013bb141855 100644 (file)
@@ -3565,7 +3565,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);
index bd66e70cc7b2949f029a39406e4f766e3419b205..34392fd5d6a4c5ce070246da18c3263f1cffd8e1 100644 (file)
@@ -1508,7 +1508,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;
        }