avoid debug logging unknown xmpp messages, which may contain sensative information
This commit is contained in:
parent
014af3c33c
commit
853ec68253
1 changed files with 3 additions and 1 deletions
|
@ -171,7 +171,9 @@ logXMPPEvent :: XMPPEvent -> String
|
|||
logXMPPEvent (GotNetMessage m) = logNetMessage m
|
||||
logXMPPEvent (PresenceMessage p) = logPresence p
|
||||
logXMPPEvent (Ignorable (ReceivedPresence p)) = "Ignorable " ++ logPresence p
|
||||
logXMPPEvent v = show v
|
||||
logXMPPEvent (Ignorable _) = "Ignorable message"
|
||||
logXMPPEvent (Unknown _) = "Unknown message"
|
||||
logXMPPEvent (ProtocolError _) = "Protocol error message"
|
||||
|
||||
logPresence :: Presence -> String
|
||||
logPresence (p@Presence { presenceFrom = Just jid }) = unwords
|
||||
|
|
Loading…
Reference in a new issue