From 450f2eb5f4c83a3f23088a028e3d13659628f332 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 4 Apr 2018 01:44:13 +0200 Subject: [PATCH] mod_message_log: Fix logging of offline message --- mod_message_log/src/mod_message_log.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mod_message_log/src/mod_message_log.erl b/mod_message_log/src/mod_message_log.erl index 3f08ed0..1c7da71 100644 --- a/mod_message_log/src/mod_message_log.erl +++ b/mod_message_log/src/mod_message_log.erl @@ -166,9 +166,10 @@ log_packet_receive({#message{} = Msg, _C2SState} = Acc) -> log_packet_receive({_Stanza, _C2SState} = Acc) -> Acc. --spec log_packet_offline(message()) -> any(). -log_packet_offline(Msg) -> - log_packet(offline, Msg). +-spec log_packet_offline({any(), message()}) -> {any(), message()}. +log_packet_offline({_Action, Msg} = Acc) -> + log_packet(offline, Msg), + Acc. -spec reopen_log() -> any(). reopen_log() ->