1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
This commit is contained in:
Unknown 2014-03-19 05:35:52 -04:00
parent 04e5d5b71f
commit 9a666f3377

View File

@ -32,11 +32,11 @@ func Logger() martini.Handler {
if !isWindows {
switch rw.Status() {
case 200:
content = fmt.Sprintf("\033[1;32%s\033[0m", content)
content = fmt.Sprintf("\033[1;32m%s\033[0m", content)
case 304:
content = fmt.Sprintf("\033[1;33%s\033[0m", content)
content = fmt.Sprintf("\033[1;33m%s\033[0m", content)
case 404:
content = fmt.Sprintf("\033[1;31%s\033[0m", content)
content = fmt.Sprintf("\033[1;31m%s\033[0m", content)
}
}
log.Println(content)