revert(preview service): logging broke initialization (#2902)
- we need more tests
This commit is contained in:
Родитель
19b51c5308
Коммит
7c55af8893
|
@ -21,9 +21,6 @@ export const loggingExpressMiddleware = pinoHttp({
|
|||
// and we don't really care about 3xx stuff
|
||||
// all the user related 4xx responses are treated as info
|
||||
customLogLevel: (req, res, error) => {
|
||||
if (req.url?.startsWith('/metrics')) {
|
||||
return 'debug'
|
||||
}
|
||||
if (res.statusCode >= 400 && res.statusCode < 500) {
|
||||
return 'info'
|
||||
} else if (res.statusCode >= 500 || error) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче