diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-05-29 15:21:11 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-05-29 15:21:11 +0200 |
commit | 8fb1bb1f5f40c200032d7a869ea6be2c87da8cd8 (patch) | |
tree | d55da27427baafa7b637348bd3ddb4631bcd5b24 /src | |
parent | Merge pull request #227 from weiss/xep-0198 (diff) |
Log just one [info] message on Carbons negotiation
Log one instead of three [info] messages when XEP-0280 (Message Carbons)
support is enabled or disabled successfully. On failure, log an
additional [warning].
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_carboncopy.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_carboncopy.erl b/src/mod_carboncopy.erl index 6f3101fcd..124a15f35 100644 --- a/src/mod_carboncopy.erl +++ b/src/mod_carboncopy.erl @@ -105,7 +105,7 @@ iq_handler1(From, To, IQ) -> iq_handler(From, To, IQ, ?NS_CC_1). iq_handler(From, _To, #iq{type=set, sub_el = #xmlel{name = Operation, children = []}} = IQ, CC)-> - ?INFO_MSG("carbons IQ received: ~p", [IQ]), + ?DEBUG("carbons IQ received: ~p", [IQ]), {U, S, R} = jlib:jid_tolower(From), Result = case Operation of <<"enable">>-> @@ -117,10 +117,10 @@ iq_handler(From, _To, #iq{type=set, sub_el = #xmlel{name = Operation, children end, case Result of ok -> - ?INFO_MSG("carbons IQ result: ok", []), + ?DEBUG("carbons IQ result: ok", []), IQ#iq{type=result, sub_el=[]}; {error,_Error} -> - ?INFO_MSG("Error enabling / disabling carbons: ~p", [Result]), + ?WARNING_MSG("Error enabling / disabling carbons: ~p", [Result]), IQ#iq{type=error,sub_el = [?ERR_BAD_REQUEST]} end; |