improve internal/intlog

This commit is contained in:
John
2019-10-29 17:15:02 +08:00
parent 05fec23457
commit 3ef42bfbf0

View File

@ -10,7 +10,7 @@ package intlog
import (
"fmt"
"github.com/gogf/gf/debug/gdebug"
"os"
"github.com/gogf/gf/internal/cmdenv"
"path/filepath"
"time"
)
@ -25,7 +25,7 @@ var (
)
func init() {
if os.Getenv("GF_DEV") != "" {
if !cmdenv.Get("GF_DEV").IsEmpty() {
isInGFDevelop = true
return
}