Skip to content

Commit

Permalink
fix: HTTP log colours
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed May 24, 2023
1 parent 0a73633 commit cdfdf72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http.js
Expand Up @@ -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';
Expand Down

0 comments on commit cdfdf72

Please sign in to comment.