changeset 1229:85aa7961239a

logging
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 02 Apr 2018 02:13:02 -0600
parents f8dd726bd4f5
children 034f2a0b3915
files src/luan/webserver/Connection.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
diff -r f8dd726bd4f5 -r 85aa7961239a src/luan/webserver/Connection.java
--- a/src/luan/webserver/Connection.java	Sun Apr 01 20:49:49 2018 -0600
+++ b/src/luan/webserver/Connection.java	Mon Apr 02 02:13:02 2018 -0600
@@ -89,13 +89,13 @@
 						} else if( contentType.startsWith("multipart/form-data;") ) {
 							parser.parseMultipart();
 						} else {
-							logger.warn("unknown request content-type: "+contentType);
+							logger.info("unknown request content-type: "+contentType);
 						}
 					}
 				}
 				response = server.handler.handle(request);
 			} catch(ParseException e) {
-				logger.error("parse error\n"+request.rawHead.trim()+"\n",e);
+				logger.warn("parse error\n"+request.rawHead.trim()+"\n",e);
 				response = Response.errorResponse(Status.BAD_REQUEST,e.toString());
 			}
 			response.headers.put("connection","close");