backtrace-service
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -36,3 +36,3 @@ "use strict"; | ||
level: logLevel, | ||
silent: false, | ||
silent: process.env.NODE_ENV === 'test', | ||
format: winston_1.format.combine(winston_1.format.colorize(), winston_1.format.simple()), | ||
@@ -79,3 +79,3 @@ }), | ||
} | ||
winston_1.default.error(this.formatScope(exception.message), [exception]); | ||
winston_1.default.error(this.formatScope(exception.message)); | ||
}; | ||
@@ -82,0 +82,0 @@ Logger.prototype.getTransportLevel = function () { |
@@ -16,4 +16,6 @@ "use strict"; | ||
var metricsStorage_1 = require("../metrics/metricsStorage"); | ||
var projectValidation_1 = require("./projectValidation"); | ||
var serviceConfiguration_1 = require("./serviceConfiguration"); | ||
var projectValidation_1 = require("./projectValidation"); | ||
// tslint:disable-next-line: no-var-requires | ||
var packageJson = require('../../package.json'); | ||
var BacktraceService = /** @class */ (function () { | ||
@@ -134,2 +136,7 @@ function BacktraceService(name, port, _opts) { | ||
app.use(compression_1.default()); | ||
// Add default Backtrace headers to every service response | ||
app.use(function (req, res, next) { | ||
res.set('service-version', packageJson.version); | ||
next(); | ||
}); | ||
// Route hit by pingdom | ||
@@ -136,0 +143,0 @@ app.get(prefix ? prefix : '/', function (_req, res) { |
{ | ||
"name": "backtrace-service", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Common tools for Backtrace Node services", | ||
@@ -5,0 +5,0 @@ "author": "Backtrace", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
150393
2077
21