mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Removing the warning message and changing the HTTP response status code to 400
This commit is contained in:
parent
07c525667c
commit
cffecfaf3a
@ -80,8 +80,7 @@ public class GeoServiceImpl implements GeoService {
|
|||||||
.getDeviceManagementConfig();
|
.getDeviceManagementConfig();
|
||||||
if (deviceManagementConfig != null) {
|
if (deviceManagementConfig != null) {
|
||||||
if(!deviceManagementConfig.getGeoLocationConfiguration().getPublishLocationOperationResponse()){
|
if(!deviceManagementConfig.getGeoLocationConfiguration().getPublishLocationOperationResponse()){
|
||||||
log.warn("Failed to fetch geo location stats since the GeoLocation service has not been enabled.");
|
return Response.status(Response.Status.BAD_REQUEST.getStatusCode()).build();
|
||||||
return Response.status(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode()).build();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String tableName = "IOT_PER_DEVICE_STREAM_GEO_FUSEDSPATIALEVENT";
|
String tableName = "IOT_PER_DEVICE_STREAM_GEO_FUSEDSPATIALEVENT";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user