diff --git a/lib/service/notifier/email.ex b/lib/service/notifier/email.ex index 6fa37cc70..64b48b24f 100644 --- a/lib/service/notifier/email.ex +++ b/lib/service/notifier/email.ex @@ -178,7 +178,7 @@ defmodule Mobilizon.Service.Notifier.Email do @spec save_last_notification_time(User.t()) :: {:ok, Setting.t()} | {:error, Ecto.Changeset.t()} defp save_last_notification_time(%User{id: user_id, email: email}) do - Logger.debug("Saving last notification time for user #{email}") + Logger.info("Saving last notification time for user #{email}") attrs = %{user_id: user_id, last_notification_sent: DateTime.utc_now()} case Users.get_setting(user_id) do diff --git a/lib/service/workers/send_activity_recap_worker.ex b/lib/service/workers/send_activity_recap_worker.ex index 62d957886..0bdf4da34 100644 --- a/lib/service/workers/send_activity_recap_worker.ex +++ b/lib/service/workers/send_activity_recap_worker.ex @@ -42,6 +42,10 @@ defmodule Mobilizon.Service.Workers.SendActivityRecapWorker do %User{settings: %Setting{group_notifications: group_notifications}} = user } -> + Logger.info( + "Asking to send email notification #{group_notifications} to user #{user.email} for #{length(activities)} activities" + ) + Email.send(user, activities, recap: group_notifications) end) end,