Skip to content

Commit

Permalink
Use "debug" instead of "warn" in deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Nov 15, 2016
1 parent 78990f0 commit 176e085
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/hooks/views/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ var _ = require('@sailshq/lodash');
module.exports = function configure ( sails ) {

if (sails.config.views.engine) {
sails.log.warn('The `config.views.engine` config has been deprecated.');
sails.log.warn('In Sails 1.x, use `config.views.extension` to choose your view');
sails.log.warn('extension (defaults to ".ejs"), and use `config.views.getRenderFn`');
sails.log.warn('to configure your template engine or leave it undefined to use');
sails.log.warn('the built-in EJS template support.\n');
sails.log.debug('The `config.views.engine` config has been deprecated.');
sails.log.debug('In Sails 1.x, use `config.views.extension` to choose your view');
sails.log.debug('extension (defaults to ".ejs"), and use `config.views.getRenderFn`');
sails.log.debug('to configure your template engine or leave it undefined to use');
sails.log.debug('the built-in EJS template support.\n');
sails.config.views.extension = sails.config.views.engine.ext || 'ejs';
delete sails.config.views.engine;
}
Expand Down

0 comments on commit 176e085

Please sign in to comment.