diff --git a/src/mod_push.erl b/src/mod_push.erl index a19354f9b..1b35b9e0f 100644 --- a/src/mod_push.erl +++ b/src/mod_push.erl @@ -244,7 +244,7 @@ delete_old_sessions(Days) -> ?INFO_MSG("Deleted push sessions older than ~B days", [Days]), ok; [{error, Reason} | _] -> - ?ERROR_MSG("Error while deleting old push sessions: ~p", [NotOk]), + ?ERROR_MSG("Error while deleting old push sessions: ~p", [Reason]), Reason end.