From 8e0fd45e14993793c64e06682a4a05c29068d398 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 30 Jul 2018 17:02:40 +0200 Subject: Add more info logging --- server/models/avatar/avatar.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/models/avatar/avatar.ts') diff --git a/server/models/avatar/avatar.ts b/server/models/avatar/avatar.ts index e1d4c20bc..51e26c87b 100644 --- a/server/models/avatar/avatar.ts +++ b/server/models/avatar/avatar.ts @@ -3,6 +3,7 @@ import { AfterDestroy, AllowNull, Column, CreatedAt, Model, Table, UpdatedAt } f import { Avatar } from '../../../shared/models/avatars/avatar.model' import { unlinkPromise } from '../../helpers/core-utils' import { CONFIG, STATIC_PATHS } from '../../initializers' +import { logger } from '../../helpers/logger' @Table({ tableName: 'avatar' @@ -21,6 +22,7 @@ export class AvatarModel extends Model { @AfterDestroy static removeFilesAndSendDelete (instance: AvatarModel) { + logger.info('Removing avatar file %s.', instance.filename) return instance.removeAvatar() } -- cgit v1.2.3