fix TypeError: Cannot read properties of undefined (reading 'getLogger')

This commit is contained in:
tamaina 2023-01-24 01:34:14 +00:00
parent 869854eae7
commit 9fd1b35d95
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export class Resolver {
private recursionLimit = 100,
) {
this.history = new Set();
this.logger = this.loggerService.getLogger('ap-resolve'); // なぜか TypeError: Cannot read properties of undefined (reading 'getLogger') と言われる
this.logger = this.loggerService?.getLogger('ap-resolve'); // なぜか TypeError: Cannot read properties of undefined (reading 'getLogger') と言われる
this.undiciFetcher = this.httpRequestService.createFetcher({
maxRedirections: 0,
}, {}, this.logger);