Commit 639d09ae5495c4b386df4ba26b2fa279651f9877
1 parent
c22844edf7
Exists in
master
Disable logging on /modems
Showing 1 changed file with 7 additions and 1 deletions Side-by-side Diff
lib/apiserver/index.js
... | ... | @@ -88,7 +88,13 @@ async function pageHistory(req, res) { |
88 | 88 | } |
89 | 89 | |
90 | 90 | app.use(function(req, res, next) { |
91 | - if ( req && req.path && typeof req.path === 'string' && req.path.search(/\/modems\/set$/) >= 0 ) { | |
91 | + if ( | |
92 | + req && req.path && typeof req.path === 'string' | |
93 | + && ( | |
94 | + req.path.search(/\/modems$/) >= 0 | |
95 | + || req.path.search(/\/modems\/set$/) >= 0 | |
96 | + ) | |
97 | + ) { | |
92 | 98 | next(); |
93 | 99 | return; |
94 | 100 | } |