mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-02-02 18:28:41 +08:00
fix 请求日志空指针问题
This commit is contained in:
parent
e144b12580
commit
6d0c22f98c
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user