mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
fix: http log spam
This commit is contained in:
parent
be7f431746
commit
788f0fee05
@ -124,7 +124,7 @@ module.exports = async client => {
|
|||||||
: responseTime >= 5
|
: responseTime >= 5
|
||||||
? '&e'
|
? '&e'
|
||||||
: '&a') + responseTime + 'ms';
|
: '&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}`));
|
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}`);
|
if (!req.routerPath) client.log.verbose.http(`${req.id} ${req.method} ${req.url}`);
|
||||||
done();
|
done();
|
||||||
|
Loading…
Reference in New Issue
Block a user