mirror of
https://github.com/beego/bee.git
synced 2025-06-11 18:40:40 +00:00
1. Make logs for beego developer not for bee developer
2. Fix debug mode
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user