mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	cleanup
This commit is contained in:
		
							parent
							
								
									8e6bcafa24
								
							
						
					
					
						commit
						e075917136
					
				@ -42,7 +42,7 @@ module.exports = function (config) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    app.use(bodyParser.json({ strict: false }));
 | 
					    app.use(bodyParser.json({ strict: false }));
 | 
				
			||||||
    app.use(log4js.connectLogger(logger, {
 | 
					    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
 | 
					        level: 'auto', // 3XX=WARN, 4xx/5xx=ERROR
 | 
				
			||||||
    }));
 | 
					    }));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -3,7 +3,6 @@
 | 
				
			|||||||
const prometheusRegister = require('prom-client/lib/register');
 | 
					const prometheusRegister = require('prom-client/lib/register');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = function (app, config) {
 | 
					module.exports = function (app, config) {
 | 
				
			||||||
    console.log({config});
 | 
					 | 
				
			||||||
    if(config.serverMetrics) {
 | 
					    if(config.serverMetrics) {
 | 
				
			||||||
        app.get('/internal-backstage/prometheus', (req, res) => {
 | 
					        app.get('/internal-backstage/prometheus', (req, res) => {
 | 
				
			||||||
            res.writeHead(200, { 'Content-Type': 'text/plain' });
 | 
					            res.writeHead(200, { 'Content-Type': 'text/plain' });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user