diff --git a/src/http.js b/src/http.js index 2ffea43..f582175 100644 --- a/src/http.js +++ b/src/http.js @@ -124,7 +124,7 @@ module.exports = async client => { : responseTime >= 5 ? '&e' : '&a') + responseTime + 'ms'; - const level = req.routerPath.startsWith('/settings') ? 'verbose' : 'info'; + const level = req.routerPath === '/*' ? 'verbose' : 'info'; client.log[level].http(short(`${req.id} ${req.ip} ${req.method} ${req.routerPath ?? '*'} &m-+>&r ${status}&b in ${responseTime}`)); if (!req.routerPath) client.log.verbose.http(`${req.id} ${req.method} ${req.url}`); done();