Skip to content

Commit dd7f193

Browse files
author
myxy99
committed
默认debug is true
1 parent ce258c0 commit dd7f193

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xapp/app.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ func init() {
4444

4545
appMode = os.Getenv(`SERVER_APP_MODE`)
4646
appId = os.Getenv(`SERVER_APP_ID`)
47-
debug = os.Getenv(`SERVER_APP_DEBUG`)
47+
envDebug := os.Getenv(`SERVER_APP_DEBUG`)
48+
if envDebug != "" {
49+
debug = envDebug
50+
}
4851
}
4952

5053
var (

0 commit comments

Comments
 (0)