diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-15 15:30:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-18 11:37:18 +0200 |
commit | 42b40636991b97fe818007fab19091764fc5db73 (patch) | |
tree | db431787c06ce898d22e91ff771f795219274fc6 /client/src/app/+videos/+video-edit/shared | |
parent | 654d4ede7fa4d0faa71e49bcfab6b65a686397b2 (diff) | |
download | PeerTube-42b40636991b97fe818007fab19091764fc5db73.tar.gz PeerTube-42b40636991b97fe818007fab19091764fc5db73.tar.zst PeerTube-42b40636991b97fe818007fab19091764fc5db73.zip |
Add ability for client to create server logs
Diffstat (limited to 'client/src/app/+videos/+video-edit/shared')
-rw-r--r-- | client/src/app/+videos/+video-edit/shared/video-edit.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts index c74ef5731..99f8c9034 100644 --- a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts +++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts | |||
@@ -38,6 +38,7 @@ import { VideoCaptionAddModalComponent } from './video-caption-add-modal.compone | |||
38 | import { VideoCaptionEditModalComponent } from './video-caption-edit-modal/video-caption-edit-modal.component' | 38 | import { VideoCaptionEditModalComponent } from './video-caption-edit-modal/video-caption-edit-modal.component' |
39 | import { VideoEditType } from './video-edit.type' | 39 | import { VideoEditType } from './video-edit.type' |
40 | import { VideoSource } from '@shared/models/videos/video-source' | 40 | import { VideoSource } from '@shared/models/videos/video-source' |
41 | import { logger } from '@root-helpers/logger' | ||
41 | 42 | ||
42 | type VideoLanguages = VideoConstant<string> & { group?: string } | 43 | type VideoLanguages = VideoConstant<string> & { group?: string } |
43 | type PluginField = { | 44 | type PluginField = { |
@@ -443,7 +444,7 @@ export class VideoEditComponent implements OnInit, OnDestroy { | |||
443 | 444 | ||
444 | const oldChannel = this.userVideoChannels.find(c => c.id === oldChannelId) | 445 | const oldChannel = this.userVideoChannels.find(c => c.id === oldChannelId) |
445 | if (!newChannel || !oldChannel) { | 446 | if (!newChannel || !oldChannel) { |
446 | console.error('Cannot find new or old channel.') | 447 | logger.error('Cannot find new or old channel.') |
447 | return | 448 | return |
448 | } | 449 | } |
449 | 450 | ||