log message in case of failure during loading system cert pool
This commit is contained in:
		
							parent
							
								
									d7a51e4aab
								
							
						
					
					
						commit
						befab0521a
					
				|  | @ -72,7 +72,10 @@ func newRedisClient(opts options.RedisStoreOptions) (*redis.Client, error) { | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	if opts.RedisCAPath != "" { | 	if opts.RedisCAPath != "" { | ||||||
| 		rootCAs, _ := x509.SystemCertPool() | 		rootCAs, err := x509.SystemCertPool() | ||||||
|  | 		if err != nil { | ||||||
|  | 			logger.Printf("failed to load system cert pool for redis connection, falling back to empty cert pool") | ||||||
|  | 		} | ||||||
| 		if rootCAs == nil { | 		if rootCAs == nil { | ||||||
| 			rootCAs = x509.NewCertPool() | 			rootCAs = x509.NewCertPool() | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue