mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 21:01:31 +00:00
router logger modify
This commit is contained in:
parent
578440a18d
commit
661dcbb6ca
@ -21,7 +21,6 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"reflect"
|
"reflect"
|
||||||
"runtime"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
@ -921,13 +920,8 @@ Admin:
|
|||||||
devInfo += fmt.Sprintf(" r:%s", routerInfo.pattern)
|
devInfo += fmt.Sprintf(" r:%s", routerInfo.pattern)
|
||||||
}
|
}
|
||||||
|
|
||||||
//todo one logger enough,in fact no need to separate logger into windows and others
|
|
||||||
if runtime.GOOS == "windows" {
|
|
||||||
logs.W32Debug(devInfo)
|
|
||||||
} else {
|
|
||||||
logs.Debug(devInfo)
|
logs.Debug(devInfo)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// Call WriteHeader if status code has been set changed
|
// Call WriteHeader if status code has been set changed
|
||||||
if context.Output.Status != 0 {
|
if context.Output.Status != 0 {
|
||||||
context.ResponseWriter.WriteHeader(context.Output.Status)
|
context.ResponseWriter.WriteHeader(context.Output.Status)
|
||||||
|
Loading…
Reference in New Issue
Block a user