1
0

feat: add more debug logging when deleting users

related to #1021
This commit is contained in:
kolaente
2021-10-27 22:08:11 +02:00
parent 9869fd694a
commit 8f55af07c9
2 changed files with 11 additions and 3 deletions

View File

@ -49,7 +49,7 @@ func notifyUsersScheduledForDeletion() {
return
}
log.Debugf("Found %d users scheduled for deletion", len(users))
log.Debugf("Found %d users scheduled for deletion to notify", len(users))
for _, user := range users {
if time.Since(user.DeletionLastReminderSent) < time.Hour*24 {
@ -64,6 +64,8 @@ func notifyUsersScheduledForDeletion() {
number = 3
}
log.Debugf("Notifying user %d of the deletion of their account...", user.ID)
err = notifications.Notify(user, &AccountDeletionNotification{
User: user,
NotificationNumber: number,