mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-11 03:33:53 +08:00
优化非debug模式用户不可见错误提示
This commit is contained in:
@@ -31,7 +31,7 @@ func (s *sCronClient) Start(ctx context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if config.Client == nil || config.Client.Cron == nil {
|
||||
if config == nil || config.Client == nil || config.Client.Cron == nil {
|
||||
g.Log().Errorf(ctx, "CronClient config is invalid")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user