mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 09:58:36 +01:00
add using provider logging
This commit is contained in:
parent
34aa83f682
commit
87888dcc01
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,7 @@ import { isUserRelated } from '@/misc/is-user-related.js';
|
||||||
import { CacheService } from '@/core/CacheService.js';
|
import { CacheService } from '@/core/CacheService.js';
|
||||||
import { QueryService } from '@/core/QueryService.js';
|
import { QueryService } from '@/core/QueryService.js';
|
||||||
import { IdService } from '@/core/IdService.js';
|
import { IdService } from '@/core/IdService.js';
|
||||||
|
import { LoggerService } from '@/core/LoggerService.js';
|
||||||
import type { Index, MeiliSearch } from 'meilisearch';
|
import type { Index, MeiliSearch } from 'meilisearch';
|
||||||
|
|
||||||
type K = string;
|
type K = string;
|
||||||
|
@ -92,6 +93,7 @@ export class SearchService {
|
||||||
private cacheService: CacheService,
|
private cacheService: CacheService,
|
||||||
private queryService: QueryService,
|
private queryService: QueryService,
|
||||||
private idService: IdService,
|
private idService: IdService,
|
||||||
|
private loggerService: LoggerService,
|
||||||
) {
|
) {
|
||||||
if (meilisearch) {
|
if (meilisearch) {
|
||||||
this.meilisearchNoteIndex = meilisearch.index(`${config.meilisearch!.index}---notes`);
|
this.meilisearchNoteIndex = meilisearch.index(`${config.meilisearch!.index}---notes`);
|
||||||
|
@ -124,6 +126,7 @@ export class SearchService {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.provider = config.fulltextSearch?.provider ?? 'sqlLike';
|
this.provider = config.fulltextSearch?.provider ?? 'sqlLike';
|
||||||
|
this.loggerService.getLogger('SearchService').info(`-- Provider: ${this.provider}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
|
|
Loading…
Reference in a new issue