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/account/account.ts | 1 - server/models/avatar/avatar.ts | 2 ++ server/models/video/video-caption.ts | 2 +- server/models/video/video-channel.ts | 2 -- server/models/video/video.ts | 4 +--- 5 files changed, 4 insertions(+), 7 deletions(-) (limited to 'server/models') diff --git a/server/models/account/account.ts b/server/models/account/account.ts index 2eed66fc2..d674d8d22 100644 --- a/server/models/account/account.ts +++ b/server/models/account/account.ts @@ -139,7 +139,6 @@ export class AccountModel extends Model { } if (instance.isOwned()) { - logger.debug('Sending delete of actor of account %s.', instance.Actor.url) return sendDeleteActor(instance.Actor, options.transaction) } 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() } diff --git a/server/models/video/video-caption.ts b/server/models/video/video-caption.ts index 5a1becc47..4a25097f8 100644 --- a/server/models/video/video-caption.ts +++ b/server/models/video/video-caption.ts @@ -80,7 +80,7 @@ export class VideoCaptionModel extends Model { } if (instance.isOwned()) { - logger.debug('Removing captions %s of video %s.', instance.Video.uuid, instance.language) + logger.info('Removing captions %s of video %s.', instance.Video.uuid, instance.language) try { await instance.removeCaptionFile() diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index 6567b00d6..d0dba18d5 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts @@ -140,8 +140,6 @@ export class VideoChannelModel extends Model { } if (instance.Actor.isOwned()) { - logger.debug('Sending delete of actor of video channel %s.', instance.Actor.url) - return sendDeleteActor(instance.Actor, options.transaction) } diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 5808f3936..a6c4620b2 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -607,8 +607,6 @@ export class VideoModel extends Model { }) as VideoChannelModel } - logger.debug('Sending delete of video %s.', instance.url) - return sendDeleteVideo(instance, options.transaction) } @@ -619,7 +617,7 @@ export class VideoModel extends Model { static async removeFiles (instance: VideoModel) { const tasks: Promise[] = [] - logger.debug('Removing files of video %s.', instance.url) + logger.info('Removing files of video %s.', instance.url) tasks.push(instance.removeThumbnail()) -- cgit v1.2.3