mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 15:53:08 +02:00
fix: HTTP log colours
This commit is contained in:
parent
0a73633ea9
commit
cdfdf72026
@ -117,9 +117,9 @@ module.exports = async client => {
|
||||
? '&2'
|
||||
: '&f') + res.statusCode;
|
||||
let responseTime = res.getResponseTime().toFixed(2);
|
||||
responseTime = (responseTime >= 20
|
||||
responseTime = (responseTime >= 100
|
||||
? '&c'
|
||||
: responseTime >= 5
|
||||
: responseTime >= 10
|
||||
? '&e'
|
||||
: '&a') + responseTime + 'ms';
|
||||
const level = req.routerPath === '/*' ? 'verbose' : 'info';
|
||||
|
Loading…
Reference in New Issue
Block a user