aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/avatar
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-30 17:02:40 +0200
committerChocobozzz <me@florianbigard.com>2018-07-30 17:02:40 +0200
commit8e0fd45e14993793c64e06682a4a05c29068d398 (patch)
tree4567d24150f1c633181095e755d3291c4b32cead /server/models/avatar
parent43c4c63937b63ed1f41b17f4cc8fe652a6d010fc (diff)
downloadPeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.tar.gz
PeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.tar.zst
PeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.zip
Add more info logging
Diffstat (limited to 'server/models/avatar')
-rw-r--r--server/models/avatar/avatar.ts2
1 files changed, 2 insertions, 0 deletions
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
3import { Avatar } from '../../../shared/models/avatars/avatar.model' 3import { Avatar } from '../../../shared/models/avatars/avatar.model'
4import { unlinkPromise } from '../../helpers/core-utils' 4import { unlinkPromise } from '../../helpers/core-utils'
5import { CONFIG, STATIC_PATHS } from '../../initializers' 5import { CONFIG, STATIC_PATHS } from '../../initializers'
6import { logger } from '../../helpers/logger'
6 7
7@Table({ 8@Table({
8 tableName: 'avatar' 9 tableName: 'avatar'
@@ -21,6 +22,7 @@ export class AvatarModel extends Model<AvatarModel> {
21 22
22 @AfterDestroy 23 @AfterDestroy
23 static removeFilesAndSendDelete (instance: AvatarModel) { 24 static removeFilesAndSendDelete (instance: AvatarModel) {
25 logger.info('Removing avatar file %s.', instance.filename)
24 return instance.removeAvatar() 26 return instance.removeAvatar()
25 } 27 }
26 28