mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-30 04:15:21 +00:00
Bug fix
This commit is contained in:
parent
04e5d5b71f
commit
9a666f3377
|
@ -32,11 +32,11 @@ func Logger() martini.Handler {
|
||||||
if !isWindows {
|
if !isWindows {
|
||||||
switch rw.Status() {
|
switch rw.Status() {
|
||||||
case 200:
|
case 200:
|
||||||
content = fmt.Sprintf("\033[1;32%s\033[0m", content)
|
content = fmt.Sprintf("\033[1;32m%s\033[0m", content)
|
||||||
case 304:
|
case 304:
|
||||||
content = fmt.Sprintf("\033[1;33%s\033[0m", content)
|
content = fmt.Sprintf("\033[1;33m%s\033[0m", content)
|
||||||
case 404:
|
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)
|
log.Println(content)
|
||||||
|
|
Loading…
Reference in a new issue