Skip to content

Commit 18fde6c

Browse files
committed
fix: respect debug and silent logging configuration for templates worker
1 parent 1ef475c commit 18fde6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/templates-worker.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ export class TemplatesWorker {
2020
this.config = config;
2121
this.fileSystem = fileSystem;
2222
this.getRenderTemplateData = getRenderTemplateData;
23+
if (this.config.debug) consola.level = Number.MAX_SAFE_INTEGER;
24+
if (this.config.silent) consola.level = 0;
2325
}
2426

27+
2528
getTemplatePaths = (
2629
config: CodeGenConfig,
2730
): CodeGenConfig["templatePaths"] => {

0 commit comments

Comments
 (0)