From 24762e4911432b74b945befdc4718de12f5ef94d Mon Sep 17 00:00:00 2001 From: garrettmills Date: Sat, 5 Sep 2020 10:49:51 -0500 Subject: [PATCH] remove debugging --- lib/src/lifecycle/Application.ts | 2 -- lib/src/unit/ViewEngine.ts | 8 -------- 2 files changed, 10 deletions(-) diff --git a/lib/src/lifecycle/Application.ts b/lib/src/lifecycle/Application.ts index be3163d..b95e868 100644 --- a/lib/src/lifecycle/Application.ts +++ b/lib/src/lifecycle/Application.ts @@ -166,8 +166,6 @@ export default class Application { app_root = app_root.slice(7) } -console.log('app path', {parts, app_root}) - const resolved = path.resolve(app_root, ...parts) if ( resolved.startsWith('/') ) { return `file://${resolved}` diff --git a/lib/src/unit/ViewEngine.ts b/lib/src/unit/ViewEngine.ts index d8a5b40..495f624 100644 --- a/lib/src/unit/ViewEngine.ts +++ b/lib/src/unit/ViewEngine.ts @@ -57,7 +57,6 @@ export default class ViewEngine extends LifecycleUnit { } this.template_dir = this.app.app_path(base_dir) -console.log('view engine template dir', { base_dir, template_dir: this.template_dir }) this.engine = config this.logger.info(`Determined view engine from config: ${config}`) this.logger.info(`Determined base directory for templates: ${this.template_dir}`) @@ -98,17 +97,11 @@ console.log('view engine template dir', { base_dir, template_dir: this.template_ * @return string */ public template_path(...parts: string[]): string { -console.log('template path parts', parts) if ( !this.template_dir ) throw new MissingTemplateDirectoryError() let template_dir = this.template_dir if ( template_dir.startsWith('file://') ) template_dir = template_dir.slice(7) -console.log('template path dir', template_dir) - const resolved_path = path.resolve(template_dir, ...parts) - -console.log('template path resolved 1', resolved_path) - if ( resolved_path.startsWith('/') ) { return `file://${resolved_path}` } else { @@ -192,7 +185,6 @@ console.log('template path resolved 1', resolved_path) const partials_dir: unknown = this.config.get('app.views.partials_dir') if ( String(partials_dir) ) { let partials_path = this.template_path(String(partials_dir)) -console.log({ partials_path, partials_dir }) this.logger.info(`Registering Handlebars partials from: ${partials_path}`) if ( partials_path.startsWith('file://') ) {