Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit d979e98

Browse files
committed
Removed colored logging
1 parent 001eef8 commit d979e98

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

api/middleware/logger.go

+1-11
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,7 @@ func Logger() macaron.Handler {
9595
}
9696
}
9797

98-
log.Println(colorLog(rw.Status(), content.String()))
99-
}
100-
}
101-
102-
func colorLog(statusCode int, log string) string {
103-
if statusCode >= 200 && statusCode <= 202 {
104-
return fmt.Sprintf("\033[1;32m%s\033[0m", log)
105-
} else if statusCode >= 300 {
106-
return fmt.Sprintf("\033[1;31m%s\033[0m", log)
107-
} else {
108-
return log
98+
log.Println(content.String())
10999
}
110100
}
111101

0 commit comments

Comments
 (0)