Merge pull request #2 from disarticulate/patch-2

verbose output empty tile warning
This commit is contained in:
Eric Xanderson 2019-04-23 20:53:17 -05:00 committed by GitHub
commit e6747ebb78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -177,7 +177,7 @@ module.exports = function(options, repo, params, id, publicUrl, dataResolver) {
format = parts[5].split('.')[1]; format = parts[5].split('.')[1];
source.getTile(z, x, y, function(err, data, headers) { source.getTile(z, x, y, function(err, data, headers) {
if (err) { if (err) {
//console.log('MBTiles error, serving empty', err); if (options.verbose) console.log('MBTiles error, serving empty', err);
createEmptyResponse(sourceInfo.format, sourceInfo.color, callback); createEmptyResponse(sourceInfo.format, sourceInfo.color, callback);
return; return;
} }