Skip to content

Commit

Permalink
fix(cli): force logger type
Browse files Browse the repository at this point in the history
  • Loading branch information
EdouardDem committed Sep 12, 2024
1 parent 7f512c0 commit 2536e08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/lib/services/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import deepmerge from 'deepmerge';
import { DefaultConfig, DefaultConfigPaths } from './default-config';
import { CollectionsList, OptionsSchema } from './schema';
import { LOGGER } from '../../constants';
import pino from 'pino';

Check failure on line 21 in packages/cli/src/lib/services/config/config.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'pino' is defined but never used

@Service()
export class ConfigService {
Expand Down Expand Up @@ -212,7 +213,7 @@ export class ConfigService {
* See loader.ts file for more information
*/
protected getLogger() {
const baseLogger = Container.get(LOGGER);
const baseLogger = Container.get(LOGGER) as pino.Logger;
return getChildLogger(baseLogger, 'config');
}
}

0 comments on commit 2536e08

Please sign in to comment.