Skip to content

Commit

Permalink
Add debug message when loading view engine
Browse files Browse the repository at this point in the history
closes #3158
  • Loading branch information
pravdomil authored and dougwilson committed Feb 21, 2017
1 parent 1a99bb0 commit fefd729
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
unreleased
==========

* Add debug message when loading view engine

4.14.1 / 2017-01-28
===================

Expand Down
4 changes: 3 additions & 1 deletion lib/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ function View(name, options) {

if (!opts.engines[this.ext]) {
// load engine
opts.engines[this.ext] = require(this.ext.substr(1)).__express;
var mod = this.ext.substr(1)
debug('require "%s"', mod)
opts.engines[this.ext] = require(mod).__express
}

// store loaded engine
Expand Down

0 comments on commit fefd729

Please sign in to comment.