Skip to content
Snippets Groups Projects
Commit b32ddf39 authored by Markus Grigull's avatar Markus Grigull
Browse files

Add git commit to log output

parent 1b7ea337
No related branches found
No related tags found
2 merge requests!10Resolve "Add dynamic configuration files",!9Resolve "Add dynamic configuration files"
This commit is part of merge request !9. Comments created here will be created in the context of that merge request.
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment