mirror of
https://github.com/caprover/caprover
synced 2026-09-28 17:45:34 +00:00
Exclude netdasta URLs from logs
This commit is contained in:
+6
-1
@@ -30,7 +30,12 @@ app.use(favicon(path.join(__dirname, '../public', 'favicon.ico')))
|
||||
app.use(
|
||||
loggerMorgan('dev', {
|
||||
skip: function(req, res) {
|
||||
return req.originalUrl === CaptainConstants.healthCheckEndPoint
|
||||
return (
|
||||
req.originalUrl === CaptainConstants.healthCheckEndPoint ||
|
||||
req.originalUrl.startsWith(
|
||||
CaptainConstants.netDataRelativePath + '/'
|
||||
)
|
||||
)
|
||||
},
|
||||
})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user