mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore: remove unused logger (#17593)
This commit is contained in:
parent
e3f3baadb0
commit
b2753103c6
3 changed files with 2 additions and 7 deletions
|
|
@ -1,13 +1,8 @@
|
||||||
import { Injectable } from '@nestjs/common';
|
import { Injectable } from '@nestjs/common';
|
||||||
import { ChildProcessWithoutNullStreams, spawn, SpawnOptionsWithoutStdio } from 'node:child_process';
|
import { ChildProcessWithoutNullStreams, spawn, SpawnOptionsWithoutStdio } from 'node:child_process';
|
||||||
import { LoggingRepository } from 'src/repositories/logging.repository';
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ProcessRepository {
|
export class ProcessRepository {
|
||||||
constructor(private logger: LoggingRepository) {
|
|
||||||
this.logger.setContext(ProcessRepository.name);
|
|
||||||
}
|
|
||||||
|
|
||||||
spawn(command: string, args: readonly string[], options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams {
|
spawn(command: string, args: readonly string[], options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams {
|
||||||
return spawn(command, args, options);
|
return spawn(command, args, options);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -315,7 +315,7 @@ export class TestContext {
|
||||||
this.oauth = new OAuthRepository(logger);
|
this.oauth = new OAuthRepository(logger);
|
||||||
this.partner = new PartnerRepository(this.db);
|
this.partner = new PartnerRepository(this.db);
|
||||||
this.person = new PersonRepository(this.db);
|
this.person = new PersonRepository(this.db);
|
||||||
this.process = new ProcessRepository(logger);
|
this.process = new ProcessRepository();
|
||||||
this.search = new SearchRepository(logger, this.db);
|
this.search = new SearchRepository(logger, this.db);
|
||||||
this.serverInfo = new ServerInfoRepository(config, logger);
|
this.serverInfo = new ServerInfoRepository(config, logger);
|
||||||
this.session = new SessionRepository(this.db);
|
this.session = new SessionRepository(this.db);
|
||||||
|
|
|
||||||
|
|
@ -199,7 +199,7 @@ export const newTestService = <T extends BaseService>(
|
||||||
oauth: automock(OAuthRepository, { args: [loggerMock] }),
|
oauth: automock(OAuthRepository, { args: [loggerMock] }),
|
||||||
partner: automock(PartnerRepository, { strict: false }),
|
partner: automock(PartnerRepository, { strict: false }),
|
||||||
person: newPersonRepositoryMock(),
|
person: newPersonRepositoryMock(),
|
||||||
process: automock(ProcessRepository, { args: [loggerMock] }),
|
process: automock(ProcessRepository),
|
||||||
search: automock(SearchRepository, { args: [loggerMock], strict: false }),
|
search: automock(SearchRepository, { args: [loggerMock], strict: false }),
|
||||||
// eslint-disable-next-line no-sparse-arrays
|
// eslint-disable-next-line no-sparse-arrays
|
||||||
serverInfo: automock(ServerInfoRepository, { args: [, loggerMock], strict: false }),
|
serverInfo: automock(ServerInfoRepository, { args: [, loggerMock], strict: false }),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue