Mercurial Hosting > luan
comparison src/goodjava/webserver/handlers/LogHandler.java @ 1610:94ea190714dd
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 13 May 2021 17:26:34 -0600 |
parents | 8a717f0b7f45 |
children | 8b3ad1fb219f |
comparison
equal
deleted
inserted
replaced
1609:268b2a26e8d7 | 1610:94ea190714dd |
---|---|
64 Response response = handler.handle(request); | 64 Response response = handler.handle(request); |
65 if( response == null ) | 65 if( response == null ) |
66 return null; | 66 return null; |
67 String ip = (String)request.headers.get("x-real-ip"); | 67 String ip = (String)request.headers.get("x-real-ip"); |
68 //String agent = (String)request.headers.get("user-agent"); | 68 //String agent = (String)request.headers.get("user-agent"); |
69 logger.info( ip + " \"" + request.method + " " + request.path + "\" " + response.status.code + " " + response.body.length ); | 69 logger.info( ip + " \"" + request.method + " " + request.rawPath + "\" " + response.status.code + " " + response.body.length ); |
70 return response; | 70 return response; |
71 } | 71 } |
72 } | 72 } |