default value in errors header
This commit is contained in:
parent
e7b8d9b223
commit
60e4defa66
@ -409,6 +409,12 @@ function setupLogger(app, opts) {
|
|||||||
};
|
};
|
||||||
app.use(global.log4js.connectLogger(global.log4js.getLogger(), _.defaults(loggerOpts, {level: 'info'})));
|
app.use(global.log4js.connectLogger(global.log4js.getLogger(), _.defaults(loggerOpts, {level: 'info'})));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// default X-Tiler-Errors header
|
||||||
|
app.use((req, res, next) => {
|
||||||
|
res.set('X-Tiler-Errors', '{}');
|
||||||
|
next();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function surrogateKeysCacheBackends(serverOptions) {
|
function surrogateKeysCacheBackends(serverOptions) {
|
||||||
|
Loading…
Reference in New Issue
Block a user