From 8e3c9005809d7c1487dc4914e855ab41b828fb4a Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 9 Oct 2012 11:45:57 +0200 Subject: [PATCH] Print a warning when configured mapnik version doesn't match installed --- lib/cartodb/server_options.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/cartodb/server_options.js b/lib/cartodb/server_options.js index 2a2a11aa..b0ce3ba8 100644 --- a/lib/cartodb/server_options.js +++ b/lib/cartodb/server_options.js @@ -21,6 +21,14 @@ module.exports = function(){ log_format: global.environment.log_format }; + // Be nice and warn if configured mapnik version + // is != instaled mapnik version + if ( mapnik.versions.mapnik != me.grainstore.mapnik_version ) { + console.warn("WARNING: detected mapnik version (" + + mapnik.versions.mapnik + ") != configured mapnik version (" + + me.grainstore.mapnik_version + ")"); + } + // Set the cache chanel info to invalidate the cache on the frontend server // // @param req The request object.