mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-26 16:46:14 +08:00
fix 请求日志空指针问题
This commit is contained in:
@@ -111,7 +111,11 @@ func (s *sSysLog) AutoLog(ctx context.Context) error {
|
||||
}()
|
||||
|
||||
config, err := service.SysConfig().GetLoadLog(ctx)
|
||||
if err != nil || !config.Switch {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
if config == nil || !config.Switch {
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user