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

1. Make logs for beego developer not for bee developer

2. Fix debug mode
This commit is contained in:
Sergey Lanzman
2017-03-10 20:32:22 +02:00
parent 6dce4df2cb
commit abf2b4a4cb
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)