Remove console usage

This commit is contained in:
Raul Ochoa 2016-05-05 12:17:51 +02:00
parent 3af05bb734
commit e3d6da06a7

View File

@ -3,6 +3,7 @@ var bodyParser = require('body-parser');
var RedisPool = require('redis-mpool'); var RedisPool = require('redis-mpool');
var cartodbRedis = require('cartodb-redis'); var cartodbRedis = require('cartodb-redis');
var _ = require('underscore'); var _ = require('underscore');
var debug = require('debug')('windshaft:cartodb');
var controller = require('./controllers'); var controller = require('./controllers');
@ -231,7 +232,7 @@ function validateOptions(opts) {
// Be nice and warn if configured mapnik version is != instaled mapnik version // Be nice and warn if configured mapnik version is != instaled mapnik version
if (mapnik.versions.mapnik !== opts.grainstore.mapnik_version) { if (mapnik.versions.mapnik !== opts.grainstore.mapnik_version) {
console.warn('WARNING: detected mapnik version (' + mapnik.versions.mapnik + ')' + debug('WARNING: detected mapnik version (' + mapnik.versions.mapnik + ')' +
' != configured mapnik version (' + opts.grainstore.mapnik_version + ')'); ' != configured mapnik version (' + opts.grainstore.mapnik_version + ')');
} }
} }