Skip to content

Commit

Permalink
feat(import): allow to override logger
Browse files Browse the repository at this point in the history
  • Loading branch information
kptdobe committed Sep 9, 2021
1 parent b4812cb commit 270279a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/importer/PageImporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default abstract class PageImporter implements Importer {

constructor(params: PageImporterParams) {
this.params = params;
this.logger = console;
this.logger = params.logger || console;

this.useCache = !!params.cache;
}
Expand Down
1 change: 1 addition & 0 deletions src/importer/PageImporterParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ export default class PageImporterParams implements ImporterParams {
cache?: string;
skipAssetsUpload?: boolean;
skipDocxConversion?: boolean;
logger?: any;
}

0 comments on commit 270279a

Please sign in to comment.