补齐相关日志日志
This commit is contained in:
@@ -36,6 +36,7 @@ func NewRedisEngine(s *setting.RedisSettingS) (*redis.Client, error) {
|
||||
return nil, fmt.Errorf("redis ping failed: %w", err)
|
||||
}
|
||||
|
||||
// 启动期一次性连接日志:此时无请求 span 可关联,保持非 Context 版本(无 trace_id 可注入)。
|
||||
slog.Info("redis connected", "addr", fmt.Sprintf("%s:%d", s.Host, s.Port))
|
||||
return client, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user