mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
cleanup
This commit is contained in:
parent
5f39115914
commit
c75b12a7ac
@ -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
|
||||
}));
|
||||
|
||||
|
@ -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' });
|
||||
|
Loading…
Reference in New Issue
Block a user