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 Jan 29, 2017
1 parent 56bc6a3 commit 040394e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
unreleased
==========

* Add debug message when loading view engine
* deps: debug@2.6.0
- Allow colors in workers
- Deprecated `DEBUG_FD` environment variable
Expand Down
1 change: 1 addition & 0 deletions lib/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function View(name, options) {

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

Expand Down

0 comments on commit 040394e

Please sign in to comment.