[racket] web server log format

From: Jordan Schatz (jordan at noionlabs.com)
Date: Fri Dec 9 22:29:07 EST 2011

> I'll fix it for the next release sometime tomorrow.
Thanks Jay : )

On Fri, Dec 09, 2011 at 06:42:04PM -0700, Jay McCarthy wrote:
> Hah. I just looked at the code and it has always had 200 and 512 hard-coded
> in the logging function. Hah. I'll fix it for the next release sometime
> tomorrow.
> 
> Jay
> 
> On Fri, Dec 9, 2011 at 5:07 PM, Jordan Schatz <jordan at noionlabs.com> wrote:
> 
> > I have a web server with logging setup like so:
> > (serve/servlet start
> >               #:log-file "../logs/server"
> >               #:log-format 'apache-default)
> >
> > Here are the headers from a client request
> > HTTP/1.1 200 OK
> > Date: Fri, 09 Dec 2011 21:23:16 GMT
> > Last-Modified: Thu, 08 Dec 2011 05:04:56 GMT
> > Server: Racket
> > Content-Type: text/html
> > Accept-Ranges: bytes
> > Content-Length: 2629
> >
> > And here is what the log records:
> > 69.51.119.190 - - [09/Dec/2011:16:23:16 -0500] "GET /index.html HTTP/1.1"
> > 200 512
> >
> > The log's request size doesn't seem to match the content length of the
> > request, 512 vrs 2629, also every request size in the log is 512. Am I
> > missing something?
> >
> > Thanks,
> > Jordan
> > _________________________________________________
> >  For list-related administrative tasks:
> >  http://lists.racket-lang.org/listinfo/users
> >
> 
> 
> 
> -- 
> Jay McCarthy <jay at cs.byu.edu>
> Assistant Professor / Brigham Young University
> http://faculty.cs.byu.edu/~jay
> 
> "The glory of God is Intelligence" - D&C 93


Posted on the users mailing list.