mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 17:23: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'
|
? '&2'
|
||||||
: '&f') + res.statusCode;
|
: '&f') + res.statusCode;
|
||||||
let responseTime = res.getResponseTime().toFixed(2);
|
let responseTime = res.getResponseTime().toFixed(2);
|
||||||
responseTime = (responseTime >= 20
|
responseTime = (responseTime >= 100
|
||||||
? '&c'
|
? '&c'
|
||||||
: responseTime >= 5
|
: responseTime >= 10
|
||||||
? '&e'
|
? '&e'
|
||||||
: '&a') + responseTime + 'ms';
|
: '&a') + responseTime + 'ms';
|
||||||
const level = req.routerPath === '/*' ? 'verbose' : 'info';
|
const level = req.routerPath === '/*' ? 'verbose' : 'info';
|
||||||
|
Loading…
Reference in New Issue
Block a user