Skip to content

Commit

Permalink
fix: Override options
Browse files Browse the repository at this point in the history
  • Loading branch information
unlight committed Feb 17, 2021
1 parent 94e7882 commit 4d2f3c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/nestolog-options.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import { nestologOptionsDefaults } from './nestolog-options';

export const NESTOLOG_OPTIONS = Symbol('NESTOLOG_OPTIONS');

export const nestologOptionsProvider: Provider = {
provide: NESTOLOG_OPTIONS,
useValue: nestologOptionsDefaults,
};

export type NestologOptions = typeof nestologOptionsDefaults &
Parameters<typeof ololog.configure>[0];

Expand Down
2 changes: 0 additions & 2 deletions src/nestolog.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
NESTOLOG_OPTIONS,
NestologOptions,
nestologOptionsDefaults,
nestologOptionsProvider,
} from './nestolog-options.provider';
import { NestoLogger } from './nestologger.service';

Expand All @@ -25,7 +24,6 @@ export class NestologModule {
provide: NESTOLOG_OPTIONS,
useValue: options,
},
nestologOptionsProvider,
NestoLogger,
],
exports: [NestoLogger],
Expand Down

0 comments on commit 4d2f3c7

Please sign in to comment.