tun2: log on no backends

This commit is contained in:
Cadey Ratio 2017-03-26 22:50:45 -07:00
parent 03f9570151
commit d52776a7fc
1 changed files with 7 additions and 0 deletions

View File

@ -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")
}