From 34caef7fc0710623c6894549423813d53f65b303 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 10 Dec 2020 16:38:12 +0100 Subject: Add joblog at the end of ci --- server/controllers/api/search.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/controllers/api/search.ts') diff --git a/server/controllers/api/search.ts b/server/controllers/api/search.ts index 353fd171b..7e1b7b230 100644 --- a/server/controllers/api/search.ts +++ b/server/controllers/api/search.ts @@ -85,8 +85,6 @@ function searchVideoChannels (req: express.Request, res: express.Response) { } async function searchVideoChannelsIndex (query: VideoChannelsSearchQuery, res: express.Response) { - logger.debug('Doing channels search on search index.') - const result = await buildMutedForSearchIndex(res) const body = Object.assign(query, result) @@ -94,6 +92,8 @@ async function searchVideoChannelsIndex (query: VideoChannelsSearchQuery, res: e const url = sanitizeUrl(CONFIG.SEARCH.SEARCH_INDEX.URL) + '/api/v1/search/video-channels' try { + logger.debug('Doing video channels search index request on %s.', url, { body }) + const searchIndexResult = await doRequest>({ uri: url, body, json: true }) return res.json(searchIndexResult.body) @@ -166,8 +166,6 @@ function searchVideos (req: express.Request, res: express.Response) { } async function searchVideosIndex (query: VideosSearchQuery, res: express.Response) { - logger.debug('Doing videos search on search index.') - const result = await buildMutedForSearchIndex(res) const body: VideosSearchQuery = Object.assign(query, result) @@ -186,6 +184,8 @@ async function searchVideosIndex (query: VideosSearchQuery, res: express.Respons const url = sanitizeUrl(CONFIG.SEARCH.SEARCH_INDEX.URL) + '/api/v1/search/videos' try { + logger.debug('Doing videos search index request on %s.', url, { body }) + const searchIndexResult = await doRequest>({ uri: url, body, json: true }) return res.json(searchIndexResult.body) -- cgit v1.2.3