Commit b1e5a869167112869b9fd85c0830686edb306bf5
1 parent
bb226c43
去除查询类api调用的日志
Showing
4 changed files
with
33 additions
and
33 deletions
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/MobilePosition/MobilePositionController.java
| @@ -67,9 +67,9 @@ public class MobilePositionController { | @@ -67,9 +67,9 @@ public class MobilePositionController { | ||
| 67 | public ResponseEntity<List<MobilePosition>> positions(@PathVariable String deviceId, | 67 | public ResponseEntity<List<MobilePosition>> positions(@PathVariable String deviceId, |
| 68 | @RequestParam(required = false) String start, | 68 | @RequestParam(required = false) String start, |
| 69 | @RequestParam(required = false) String end) { | 69 | @RequestParam(required = false) String end) { |
| 70 | - if (logger.isDebugEnabled()) { | ||
| 71 | - logger.debug("查询设备" + deviceId + "的历史轨迹"); | ||
| 72 | - } | 70 | +// if (logger.isDebugEnabled()) { |
| 71 | +// logger.debug("查询设备" + deviceId + "的历史轨迹"); | ||
| 72 | +// } | ||
| 73 | 73 | ||
| 74 | if (StringUtil.isEmpty(start)) { | 74 | if (StringUtil.isEmpty(start)) { |
| 75 | start = null; | 75 | start = null; |
| @@ -93,9 +93,9 @@ public class MobilePositionController { | @@ -93,9 +93,9 @@ public class MobilePositionController { | ||
| 93 | }) | 93 | }) |
| 94 | @GetMapping("/latest/{deviceId}") | 94 | @GetMapping("/latest/{deviceId}") |
| 95 | public ResponseEntity<MobilePosition> latestPosition(@PathVariable String deviceId) { | 95 | public ResponseEntity<MobilePosition> latestPosition(@PathVariable String deviceId) { |
| 96 | - if (logger.isDebugEnabled()) { | ||
| 97 | - logger.debug("查询设备" + deviceId + "的最新位置"); | ||
| 98 | - } | 96 | +// if (logger.isDebugEnabled()) { |
| 97 | +// logger.debug("查询设备" + deviceId + "的最新位置"); | ||
| 98 | +// } | ||
| 99 | MobilePosition result = storager.queryLatestPosition(deviceId); | 99 | MobilePosition result = storager.queryLatestPosition(deviceId); |
| 100 | return new ResponseEntity<>(result, HttpStatus.OK); | 100 | return new ResponseEntity<>(result, HttpStatus.OK); |
| 101 | } | 101 | } |
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java
| @@ -62,9 +62,9 @@ public class DeviceQuery { | @@ -62,9 +62,9 @@ public class DeviceQuery { | ||
| 62 | @GetMapping("/devices/{deviceId}") | 62 | @GetMapping("/devices/{deviceId}") |
| 63 | public ResponseEntity<Device> devices(@PathVariable String deviceId){ | 63 | public ResponseEntity<Device> devices(@PathVariable String deviceId){ |
| 64 | 64 | ||
| 65 | - if (logger.isDebugEnabled()) { | ||
| 66 | - logger.debug("查询视频设备API调用,deviceId:" + deviceId); | ||
| 67 | - } | 65 | +// if (logger.isDebugEnabled()) { |
| 66 | +// logger.debug("查询视频设备API调用,deviceId:" + deviceId); | ||
| 67 | +// } | ||
| 68 | 68 | ||
| 69 | Device device = storager.queryVideoDevice(deviceId); | 69 | Device device = storager.queryVideoDevice(deviceId); |
| 70 | return new ResponseEntity<>(device,HttpStatus.OK); | 70 | return new ResponseEntity<>(device,HttpStatus.OK); |
| @@ -84,9 +84,9 @@ public class DeviceQuery { | @@ -84,9 +84,9 @@ public class DeviceQuery { | ||
| 84 | @GetMapping("/devices") | 84 | @GetMapping("/devices") |
| 85 | public PageInfo<Device> devices(int page, int count){ | 85 | public PageInfo<Device> devices(int page, int count){ |
| 86 | 86 | ||
| 87 | - if (logger.isDebugEnabled()) { | ||
| 88 | - logger.debug("查询所有视频设备API调用"); | ||
| 89 | - } | 87 | +// if (logger.isDebugEnabled()) { |
| 88 | +// logger.debug("查询所有视频设备API调用"); | ||
| 89 | +// } | ||
| 90 | 90 | ||
| 91 | return storager.queryVideoDeviceList(page, count); | 91 | return storager.queryVideoDeviceList(page, count); |
| 92 | } | 92 | } |
| @@ -117,9 +117,9 @@ public class DeviceQuery { | @@ -117,9 +117,9 @@ public class DeviceQuery { | ||
| 117 | @RequestParam(required = false) String query, | 117 | @RequestParam(required = false) String query, |
| 118 | @RequestParam(required = false) Boolean online, | 118 | @RequestParam(required = false) Boolean online, |
| 119 | @RequestParam(required = false) Boolean channelType) { | 119 | @RequestParam(required = false) Boolean channelType) { |
| 120 | - if (logger.isDebugEnabled()) { | ||
| 121 | - logger.debug("查询视频设备通道API调用"); | ||
| 122 | - } | 120 | +// if (logger.isDebugEnabled()) { |
| 121 | +// logger.debug("查询视频设备通道API调用"); | ||
| 122 | +// } | ||
| 123 | if (StringUtils.isEmpty(query)) { | 123 | if (StringUtils.isEmpty(query)) { |
| 124 | query = null; | 124 | query = null; |
| 125 | } | 125 | } |
| @@ -234,9 +234,9 @@ public class DeviceQuery { | @@ -234,9 +234,9 @@ public class DeviceQuery { | ||
| 234 | @RequestParam(required = false) String online, | 234 | @RequestParam(required = false) String online, |
| 235 | @RequestParam(required = false) Boolean channelType){ | 235 | @RequestParam(required = false) Boolean channelType){ |
| 236 | 236 | ||
| 237 | - if (logger.isDebugEnabled()) { | ||
| 238 | - logger.debug("查询所有视频通道API调用"); | ||
| 239 | - } | 237 | +// if (logger.isDebugEnabled()) { |
| 238 | +// logger.debug("查询所有视频通道API调用"); | ||
| 239 | +// } | ||
| 240 | DeviceChannel deviceChannel = storager.queryChannel(deviceId,channelId); | 240 | DeviceChannel deviceChannel = storager.queryChannel(deviceId,channelId); |
| 241 | if (deviceChannel == null) { | 241 | if (deviceChannel == null) { |
| 242 | PageInfo<DeviceChannel> deviceChannelPageResult = new PageInfo<>(); | 242 | PageInfo<DeviceChannel> deviceChannelPageResult = new PageInfo<>(); |
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java
| @@ -73,9 +73,9 @@ public class PlatformController { | @@ -73,9 +73,9 @@ public class PlatformController { | ||
| 73 | }) | 73 | }) |
| 74 | public PageInfo<ParentPlatform> platforms(@PathVariable int page, @PathVariable int count){ | 74 | public PageInfo<ParentPlatform> platforms(@PathVariable int page, @PathVariable int count){ |
| 75 | 75 | ||
| 76 | - if (logger.isDebugEnabled()) { | ||
| 77 | - logger.debug("查询所有上级设备API调用"); | ||
| 78 | - } | 76 | +// if (logger.isDebugEnabled()) { |
| 77 | +// logger.debug("查询所有上级设备API调用"); | ||
| 78 | +// } | ||
| 79 | return storager.queryParentPlatformList(page, count); | 79 | return storager.queryParentPlatformList(page, count); |
| 80 | } | 80 | } |
| 81 | 81 | ||
| @@ -187,9 +187,9 @@ public class PlatformController { | @@ -187,9 +187,9 @@ public class PlatformController { | ||
| 187 | @ResponseBody | 187 | @ResponseBody |
| 188 | public ResponseEntity<String> exitPlatform(@PathVariable String serverGBId){ | 188 | public ResponseEntity<String> exitPlatform(@PathVariable String serverGBId){ |
| 189 | 189 | ||
| 190 | - if (logger.isDebugEnabled()) { | ||
| 191 | - logger.debug("查询上级平台是否存在API调用:" + serverGBId); | ||
| 192 | - } | 190 | +// if (logger.isDebugEnabled()) { |
| 191 | +// logger.debug("查询上级平台是否存在API调用:" + serverGBId); | ||
| 192 | +// } | ||
| 193 | ParentPlatform parentPlatform = storager.queryParentPlatByServerGBId(serverGBId); | 193 | ParentPlatform parentPlatform = storager.queryParentPlatByServerGBId(serverGBId); |
| 194 | return new ResponseEntity<>(String.valueOf(parentPlatform != null), HttpStatus.OK); | 194 | return new ResponseEntity<>(String.valueOf(parentPlatform != null), HttpStatus.OK); |
| 195 | } | 195 | } |
| @@ -224,9 +224,9 @@ public class PlatformController { | @@ -224,9 +224,9 @@ public class PlatformController { | ||
| 224 | @RequestParam(required = false) Boolean choosed, | 224 | @RequestParam(required = false) Boolean choosed, |
| 225 | @RequestParam(required = false) Boolean channelType){ | 225 | @RequestParam(required = false) Boolean channelType){ |
| 226 | 226 | ||
| 227 | - if (logger.isDebugEnabled()) { | ||
| 228 | - logger.debug("查询所有所有通道API调用"); | ||
| 229 | - } | 227 | +// if (logger.isDebugEnabled()) { |
| 228 | +// logger.debug("查询所有所有通道API调用"); | ||
| 229 | +// } | ||
| 230 | PageInfo<ChannelReduce> channelReduces = null; | 230 | PageInfo<ChannelReduce> channelReduces = null; |
| 231 | if (platformId != null ) { | 231 | if (platformId != null ) { |
| 232 | channelReduces = storager.queryAllChannelList(page, count, query, online, channelType, platformId, choosed); | 232 | channelReduces = storager.queryAllChannelList(page, count, query, online, channelType, platformId, choosed); |
src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java
| @@ -50,9 +50,9 @@ public class ApiDeviceController { | @@ -50,9 +50,9 @@ public class ApiDeviceController { | ||
| 50 | @RequestParam(required = false)String q, | 50 | @RequestParam(required = false)String q, |
| 51 | @RequestParam(required = false)Boolean online ){ | 51 | @RequestParam(required = false)Boolean online ){ |
| 52 | 52 | ||
| 53 | - if (logger.isDebugEnabled()) { | ||
| 54 | - logger.debug("查询所有视频设备API调用"); | ||
| 55 | - } | 53 | +// if (logger.isDebugEnabled()) { |
| 54 | +// logger.debug("查询所有视频设备API调用"); | ||
| 55 | +// } | ||
| 56 | JSONObject result = new JSONObject(); | 56 | JSONObject result = new JSONObject(); |
| 57 | List<Device> devices; | 57 | List<Device> devices; |
| 58 | if (start == null || limit ==null) { | 58 | if (start == null || limit ==null) { |
| @@ -98,9 +98,9 @@ public class ApiDeviceController { | @@ -98,9 +98,9 @@ public class ApiDeviceController { | ||
| 98 | @RequestParam(required = false)String q, | 98 | @RequestParam(required = false)String q, |
| 99 | @RequestParam(required = false)Boolean online ){ | 99 | @RequestParam(required = false)Boolean online ){ |
| 100 | 100 | ||
| 101 | - if (logger.isDebugEnabled()) { | ||
| 102 | - logger.debug("查询所有视频设备API调用"); | ||
| 103 | - } | 101 | +// if (logger.isDebugEnabled()) { |
| 102 | +// logger.debug("查询所有视频设备API调用"); | ||
| 103 | +// } | ||
| 104 | JSONObject result = new JSONObject(); | 104 | JSONObject result = new JSONObject(); |
| 105 | // 查询设备是否存在 | 105 | // 查询设备是否存在 |
| 106 | Device device = storager.queryVideoDevice(serial); | 106 | Device device = storager.queryVideoDevice(serial); |