(log *zap.Logger, msg string, prod bool, err error)
| 1346 | } |
| 1347 | |
| 1348 | func logError(log *zap.Logger, msg string, prod bool, err error) { |
| 1349 | if prod { |
| 1350 | log.Debug(msg, zap.Error(err)) |
| 1351 | return |
| 1352 | } |
| 1353 | log.Debug(fmt.Sprintf("%s | %v", msg, err)) |
| 1354 | } |
| 1355 | |
| 1356 | func (ps *ProxyServer) Shutdown(ctx context.Context) error { |
| 1357 | if err := ps.server.Shutdown(ctx); err != nil { |
no test coverage detected