Mercurial Hosting > luan
changeset 1207:59289af20d9a
better webserver logging
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 07 Mar 2018 16:48:32 -0700 |
parents | 6dfaf4e9ce71 |
children | 1e23b913c327 |
files | src/luan/webserver/Connection.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
diff -r 6dfaf4e9ce71 -r 59289af20d9a src/luan/webserver/Connection.java --- a/src/luan/webserver/Connection.java Tue Mar 06 20:23:50 2018 -0700 +++ b/src/luan/webserver/Connection.java Wed Mar 07 16:48:32 2018 -0700 @@ -95,7 +95,7 @@ } response = server.handler.handle(request); } catch(ParseException e) { - logger.warn("",e); + logger.error("parse error\n"+request.rawHead.trim()+"\n",e); response = Response.errorResponse(Status.BAD_REQUEST,e.toString()); } response.headers.put("connection","close");