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 | 67 | public ResponseEntity<List<MobilePosition>> positions(@PathVariable String deviceId, |
| 68 | 68 | @RequestParam(required = false) String start, |
| 69 | 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 | 74 | if (StringUtil.isEmpty(start)) { |
| 75 | 75 | start = null; |
| ... | ... | @@ -93,9 +93,9 @@ public class MobilePositionController { |
| 93 | 93 | }) |
| 94 | 94 | @GetMapping("/latest/{deviceId}") |
| 95 | 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 | 99 | MobilePosition result = storager.queryLatestPosition(deviceId); |
| 100 | 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 | 62 | @GetMapping("/devices/{deviceId}") |
| 63 | 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 | 69 | Device device = storager.queryVideoDevice(deviceId); |
| 70 | 70 | return new ResponseEntity<>(device,HttpStatus.OK); |
| ... | ... | @@ -84,9 +84,9 @@ public class DeviceQuery { |
| 84 | 84 | @GetMapping("/devices") |
| 85 | 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 | 91 | return storager.queryVideoDeviceList(page, count); |
| 92 | 92 | } |
| ... | ... | @@ -117,9 +117,9 @@ public class DeviceQuery { |
| 117 | 117 | @RequestParam(required = false) String query, |
| 118 | 118 | @RequestParam(required = false) Boolean online, |
| 119 | 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 | 123 | if (StringUtils.isEmpty(query)) { |
| 124 | 124 | query = null; |
| 125 | 125 | } |
| ... | ... | @@ -234,9 +234,9 @@ public class DeviceQuery { |
| 234 | 234 | @RequestParam(required = false) String online, |
| 235 | 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 | 240 | DeviceChannel deviceChannel = storager.queryChannel(deviceId,channelId); |
| 241 | 241 | if (deviceChannel == null) { |
| 242 | 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 | 73 | }) |
| 74 | 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 | 79 | return storager.queryParentPlatformList(page, count); |
| 80 | 80 | } |
| 81 | 81 | |
| ... | ... | @@ -187,9 +187,9 @@ public class PlatformController { |
| 187 | 187 | @ResponseBody |
| 188 | 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 | 193 | ParentPlatform parentPlatform = storager.queryParentPlatByServerGBId(serverGBId); |
| 194 | 194 | return new ResponseEntity<>(String.valueOf(parentPlatform != null), HttpStatus.OK); |
| 195 | 195 | } |
| ... | ... | @@ -224,9 +224,9 @@ public class PlatformController { |
| 224 | 224 | @RequestParam(required = false) Boolean choosed, |
| 225 | 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 | 230 | PageInfo<ChannelReduce> channelReduces = null; |
| 231 | 231 | if (platformId != null ) { |
| 232 | 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 | 50 | @RequestParam(required = false)String q, |
| 51 | 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 | 56 | JSONObject result = new JSONObject(); |
| 57 | 57 | List<Device> devices; |
| 58 | 58 | if (start == null || limit ==null) { |
| ... | ... | @@ -98,9 +98,9 @@ public class ApiDeviceController { |
| 98 | 98 | @RequestParam(required = false)String q, |
| 99 | 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 | 104 | JSONObject result = new JSONObject(); |
| 105 | 105 | // 查询设备是否存在 |
| 106 | 106 | Device device = storager.queryVideoDevice(serial); | ... | ... |