Added HAProxyLogRecord type to allow logging an HTTP request from the ti...

...me it hits the port all the way through the pool down to the server.

First pass commit, still need to create a logRecord interface which HAProxy implements to allow log formats to be switched out easily. Also, need to write methods for HAProxyLog record which allow the ResponseWriter and Request variables to be private. Thus allowing the logrecord to keep track of all writes done to the response and all changes made to it. As of right now some data fields are not being filled in yet including all the wait times and the pid of the logger. Also, metrics needs to be generalized instead of having one for server and one for pool and port. Lastly, the actual log output needs to be tweaked some still to match up with the spec
Delete that line. Also remove Shutdown() from Server.


On Tue, Jul 22, 2014 at 1:32 PM, Jay Bhat <notifications@github.com> wrote:

> In src/atlantis/router/backend/pool.go:
>
> > @@ -72,7 +74,7 @@ func (p *Pool) DelServer(name string) {
> >  		logger.Errorf("[pool %s] server %s absent", p.Name, name)
> >  		return
> >  	}
> > -	p.Servers[name].Shutdown()
> > +	//p.Servers[name].Shutdown()
>
> Please try not to check in commented code
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ooyala/atlantis-router/pull/10/files#r15254071>.
>