1
0
mirror of https://github.com/beego/bee.git synced 2025-06-11 03:10:40 +00:00

Merge pull request #370 from sergeylanzman/make-log-for-beego-developer

Make logs for beego developer, not for  bee developer
This commit is contained in:
astaxie
2017-03-11 15:36:37 +08:00
committed by GitHub
3 changed files with 19 additions and 19 deletions

View File

@ -241,12 +241,6 @@ func WriteToFile(filename, content string) {
MustCheck(err)
}
// IsDebugEnabled checks if DEBUG_ENABLED is set or not
func IsDebugEnabled() bool {
debugMode := os.Getenv("DEBUG_ENABLED")
return map[string]bool{"1": true, "0": false}[debugMode]
}
// __FILE__ returns the file name in which the function was invoked
func FILE() string {
_, file, _, _ := runtime.Caller(1)