From 788f0fee05052bd8205b22d8ba2fc651b1effbf4 Mon Sep 17 00:00:00 2001 From: Isaac Date: Sat, 11 Mar 2023 00:14:24 +0000 Subject: [PATCH] fix: http log spam --- src/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();