tun2: log on no backends
This commit is contained in:
parent
03f9570151
commit
d52776a7fc
|
@ -390,6 +390,13 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) {
|
|||
}
|
||||
|
||||
if len(conns) == 0 {
|
||||
ln.Error(errors.New("no backend connected"), ln.F{
|
||||
"action": "no_backend_connected",
|
||||
"remote": req.RemoteAddr,
|
||||
"host": req.Host,
|
||||
"uri": req.RequestURI,
|
||||
})
|
||||
|
||||
return nil, errors.New("no backend connected")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue