mirror of https://github.com/ouqiang/gocron
panic替换为友好日志输出
parent
a6aeb5a916
commit
457511271d
|
@ -28,7 +28,7 @@ func InitEnv() {
|
||||||
CheckEnv()
|
CheckEnv()
|
||||||
wd, err := os.Getwd()
|
wd, err := os.Getwd()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
logger.Fatal(err)
|
||||||
}
|
}
|
||||||
AppDir = wd
|
AppDir = wd
|
||||||
ConfDir = AppDir + "/conf"
|
ConfDir = AppDir + "/conf"
|
||||||
|
|
Loading…
Reference in New Issue