summaryrefslogtreecommitdiffstats
path: root/modules/middleware/logger.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-19 05:35:52 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-19 05:35:52 -0400
commit9a666f33773c5d8b66e9ab66598414f62bcfdc11 (patch)
tree66c2c9255bb8cfff9148a29717bde9dd22fe0798 /modules/middleware/logger.go
parent04e5d5b71fe39039baf72b27411e7629edbcc6a2 (diff)
downloadgitea-9a666f33773c5d8b66e9ab66598414f62bcfdc11.tar.gz
gitea-9a666f33773c5d8b66e9ab66598414f62bcfdc11.zip
Bug fix
Diffstat (limited to 'modules/middleware/logger.go')
-rw-r--r--modules/middleware/logger.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/middleware/logger.go b/modules/middleware/logger.go
index 9bbedb29a3..9ae620ebad 100644
--- a/modules/middleware/logger.go
+++ b/modules/middleware/logger.go
@@ -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)