From a9cf94767060bc7e9e06640c061bea92a9363561 Mon Sep 17 00:00:00 2001 From: lukas-heiligenbrunner Date: Thu, 23 Jan 2020 17:33:40 +0100 Subject: [PATCH] log improvements --- .../website/datarequests/DeviceRequest.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/java/com/wasteinformationserver/website/datarequests/DeviceRequest.java b/src/java/com/wasteinformationserver/website/datarequests/DeviceRequest.java index 54eecca..587a231 100644 --- a/src/java/com/wasteinformationserver/website/datarequests/DeviceRequest.java +++ b/src/java/com/wasteinformationserver/website/datarequests/DeviceRequest.java @@ -132,7 +132,6 @@ public class DeviceRequest extends PostRequest { // TODO: 17.01.20 error handling } else { int cityid = cityset.getInt("id"); - System.out.println(cityid); jdbc.executeUpdate("INSERT INTO `device_city` (`DeviceID`, `CityID`) VALUES ('" + params.get("deviceid") + "', '" + cityid + "');"); jdbc.executeUpdate("UPDATE devices SET `CityID`='0',`DeviceName`='" + params.get("devicename") + "',`DeviceLocation`='" + params.get("devicelocation") + "' WHERE `DeviceID`='" + params.get("deviceid") + "'"); @@ -163,13 +162,11 @@ public class DeviceRequest extends PostRequest { } break; case "addtodb": - System.out.println(params); int cityid = -1; try { ResultSet device = jdbc.executeQuery("SELECT * FROM cities WHERE name='" + params.get("cityname") + "' AND wastetype='" + params.get("wastetype") + "' AND zone='" + params.get("zonename") + "'"); device.first(); cityid = device.getInt("id"); - System.out.println(cityid); jdbc.executeUpdate("INSERT INTO `device_city` (`DeviceID`, `CityID`) VALUES ('" + params.get("deviceid") + "', '" + cityid + "');"); } catch (SQLException e) { e.printStackTrace();