소스 검색

downgrade NotFoundError log-level

Brian Gough 6 년 전
부모
커밋
0914908676
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      services/clsi/app.js

+ 1 - 1
services/clsi/app.js

@@ -228,7 +228,7 @@ app.get('/smoke_test_force', (req, res) => smokeTest.sendNewResult(res))
 
 
 app.use(function(error, req, res, next) {
 app.use(function(error, req, res, next) {
   if (error instanceof Errors.NotFoundError) {
   if (error instanceof Errors.NotFoundError) {
-    logger.warn({ err: error, url: req.url }, 'not found error')
+    logger.log({ err: error, url: req.url }, 'not found error')
     return res.sendStatus(404)
     return res.sendStatus(404)
   } else if (error.code === 'EPIPE') {
   } else if (error.code === 'EPIPE') {
     // inspect container returns EPIPE when shutting down
     // inspect container returns EPIPE when shutting down