diff options
Diffstat (limited to 'client/src/app/core/rest/rest.service.ts')
-rw-r--r-- | client/src/app/core/rest/rest.service.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/core/rest/rest.service.ts b/client/src/app/core/rest/rest.service.ts index fc729f0f6..d8b5ffb18 100644 --- a/client/src/app/core/rest/rest.service.ts +++ b/client/src/app/core/rest/rest.service.ts | |||
@@ -5,7 +5,7 @@ import { Injectable } from '@angular/core' | |||
5 | import { ComponentPaginationLight } from './component-pagination.model' | 5 | import { ComponentPaginationLight } from './component-pagination.model' |
6 | import { RestPagination } from './rest-pagination' | 6 | import { RestPagination } from './rest-pagination' |
7 | 7 | ||
8 | const logger = debug('peertube:rest') | 8 | const debugLogger = debug('peertube:rest') |
9 | 9 | ||
10 | interface QueryStringFilterPrefixes { | 10 | interface QueryStringFilterPrefixes { |
11 | [key: string]: { | 11 | [key: string]: { |
@@ -88,7 +88,7 @@ export class RestService { | |||
88 | const prefixeStrings = Object.values(prefixes) | 88 | const prefixeStrings = Object.values(prefixes) |
89 | .map(p => p.prefix) | 89 | .map(p => p.prefix) |
90 | 90 | ||
91 | logger(`Built tokens "${tokens.join(', ')}" for prefixes "${prefixeStrings.join(', ')}"`) | 91 | debugLogger(`Built tokens "${tokens.join(', ')}" for prefixes "${prefixeStrings.join(', ')}"`) |
92 | 92 | ||
93 | // Search is the querystring minus defined filters | 93 | // Search is the querystring minus defined filters |
94 | const searchTokens = tokens.filter(t => { | 94 | const searchTokens = tokens.filter(t => { |
@@ -127,7 +127,7 @@ export class RestService { | |||
127 | 127 | ||
128 | const search = searchTokens.join(' ') || undefined | 128 | const search = searchTokens.join(' ') || undefined |
129 | 129 | ||
130 | logger('Built search: ' + search, additionalFilters) | 130 | debugLogger('Built search: ' + search, additionalFilters) |
131 | 131 | ||
132 | return { | 132 | return { |
133 | search, | 133 | search, |