1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
This commit is contained in:
ivaosthu 2016-12-01 17:47:51 +01:00
parent 5f39115914
commit c75b12a7ac
2 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,7 @@ module.exports = function (config) {
app.use(bodyParser.json({ strict: false }));
app.use(log4js.connectLogger(logger, {
format: ':remote-addr :status :method :url :response-timems',
format: ':status :method :url :response-timems',
level: 'auto', // 3XX=WARN, 4xx/5xx=ERROR
}));

View File

@ -3,7 +3,6 @@
const prometheusRegister = require('prom-client/lib/register');
module.exports = function (app, config) {
console.log({config});
if(config.serverMetrics) {
app.get('/internal-backstage/prometheus', (req, res) => {
res.writeHead(200, { 'Content-Type': 'text/plain' });