chore(http): use white color for HTTP 1XX (#3741)

This commit is contained in:
Viral Parmar
2023-09-27 12:47:11 +05:30
committed by GitHub
parent c2ba8f19ec
commit a481ee2897
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -83,6 +83,8 @@ func (p *LogFormatterParams) StatusCodeColor() string {
code := p.StatusCode
switch {
case code >= http.StatusContinue && code < http.StatusOK:
return white
case code >= http.StatusOK && code < http.StatusMultipleChoices:
return green
case code >= http.StatusMultipleChoices && code < http.StatusBadRequest: