Skip to content
Snippets Groups Projects

Resolve "Add dynamic configuration files"

Closed Markus Grigull requested to merge 27-add-dynamic-configuration-files into develop
1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
+ 2
3
@@ -67,7 +67,8 @@ if (config.logFile) {
}
logger.info('--- Started VILLASweb backend ---');
//logger.info('Branch: ' + git.branch() + ', Commit: ' + git.short());
logger.info('Environment: ' + config.environment);
logger.info('Build: ' + git.branch() + ' ' + git.tag() + ' from ' + git.date());
// configure app
app.use(expressWinston.logger({ winstonInstance: logger, meta: false, colorize: true, msg: "HTTP {{req.method}} {{res.statusCode}} {{req.url}} {{res.responseTime}}ms" }));
@@ -123,8 +124,6 @@ app.use(function(req, res, next) {
});
// development error handler
logger.info("Environment: " + app.get('env'));
if (app.get('env') === 'development') {
app.use(function(err, req, res, next) {
res.status(err.status || 500);
Loading