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/shared/shared-search | |
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/shared/shared-search')
-rw-r--r-- | client/src/app/shared/shared-search/find-in-bulk.service.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/client/src/app/shared/shared-search/find-in-bulk.service.ts b/client/src/app/shared/shared-search/find-in-bulk.service.ts index 117685cc6..d2f8c3213 100644 --- a/client/src/app/shared/shared-search/find-in-bulk.service.ts +++ b/client/src/app/shared/shared-search/find-in-bulk.service.ts | |||
@@ -9,7 +9,7 @@ import { VideoPlaylist } from '../shared-video-playlist' | |||
9 | import { SearchService } from './search.service' | 9 | import { SearchService } from './search.service' |
10 | import { AdvancedSearch } from './advanced-search.model' | 10 | import { AdvancedSearch } from './advanced-search.model' |
11 | 11 | ||
12 | const logger = debug('peertube:search:FindInBulkService') | 12 | const debugLogger = debug('peertube:search:FindInBulkService') |
13 | 13 | ||
14 | type BulkObservables <P extends number | string, R> = { | 14 | type BulkObservables <P extends number | string, R> = { |
15 | notifier: Subject<P> | 15 | notifier: Subject<P> |
@@ -36,7 +36,7 @@ export class FindInBulkService { | |||
36 | } | 36 | } |
37 | 37 | ||
38 | getVideo (uuid: string): Observable<Video> { | 38 | getVideo (uuid: string): Observable<Video> { |
39 | logger('Schedule video fetch for uuid %s.', uuid) | 39 | debugLogger('Schedule video fetch for uuid %s.', uuid) |
40 | 40 | ||
41 | return this.getData({ | 41 | return this.getData({ |
42 | observableObject: this.getVideoInBulk, | 42 | observableObject: this.getVideoInBulk, |
@@ -46,7 +46,7 @@ export class FindInBulkService { | |||
46 | } | 46 | } |
47 | 47 | ||
48 | getChannel (handle: string): Observable<VideoChannel> { | 48 | getChannel (handle: string): Observable<VideoChannel> { |
49 | logger('Schedule channel fetch for handle %s.', handle) | 49 | debugLogger('Schedule channel fetch for handle %s.', handle) |
50 | 50 | ||
51 | return this.getData({ | 51 | return this.getData({ |
52 | observableObject: this.getChannelInBulk, | 52 | observableObject: this.getChannelInBulk, |
@@ -56,7 +56,7 @@ export class FindInBulkService { | |||
56 | } | 56 | } |
57 | 57 | ||
58 | getPlaylist (uuid: string): Observable<VideoPlaylist> { | 58 | getPlaylist (uuid: string): Observable<VideoPlaylist> { |
59 | logger('Schedule playlist fetch for uuid %s.', uuid) | 59 | debugLogger('Schedule playlist fetch for uuid %s.', uuid) |
60 | 60 | ||
61 | return this.getData({ | 61 | return this.getData({ |
62 | observableObject: this.getPlaylistInBulk, | 62 | observableObject: this.getPlaylistInBulk, |
@@ -94,7 +94,7 @@ export class FindInBulkService { | |||
94 | } | 94 | } |
95 | 95 | ||
96 | private getVideosInBulk (uuids: string[]) { | 96 | private getVideosInBulk (uuids: string[]) { |
97 | logger('Fetching videos %s.', uuids.join(', ')) | 97 | debugLogger('Fetching videos %s.', uuids.join(', ')) |
98 | 98 | ||
99 | return this.searchService.searchVideos({ | 99 | return this.searchService.searchVideos({ |
100 | uuids, | 100 | uuids, |
@@ -104,7 +104,7 @@ export class FindInBulkService { | |||
104 | } | 104 | } |
105 | 105 | ||
106 | private getChannelsInBulk (handles: string[]) { | 106 | private getChannelsInBulk (handles: string[]) { |
107 | logger('Fetching channels %s.', handles.join(', ')) | 107 | debugLogger('Fetching channels %s.', handles.join(', ')) |
108 | 108 | ||
109 | return this.searchService.searchVideoChannels({ | 109 | return this.searchService.searchVideoChannels({ |
110 | handles, | 110 | handles, |
@@ -114,7 +114,7 @@ export class FindInBulkService { | |||
114 | } | 114 | } |
115 | 115 | ||
116 | private getPlaylistsInBulk (uuids: string[]) { | 116 | private getPlaylistsInBulk (uuids: string[]) { |
117 | logger('Fetching playlists %s.', uuids.join(', ')) | 117 | debugLogger('Fetching playlists %s.', uuids.join(', ')) |
118 | 118 | ||
119 | return this.searchService.searchVideoPlaylists({ | 119 | return this.searchService.searchVideoPlaylists({ |
120 | uuids, | 120 | uuids, |