mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: add warn log on SessionRestController#generateErrorResponse
parent
ff84eb128b
commit
a35b8399a4
|
@ -1036,6 +1036,7 @@ public class SessionRestController {
|
|||
responseJson.addProperty("error", status.getReasonPhrase());
|
||||
responseJson.addProperty("message", errorMessage);
|
||||
responseJson.addProperty("path", RequestMappings.API + path);
|
||||
log.warn("REST API error response to path {} ({}): {}", path, status.value(), errorMessage);
|
||||
return new ResponseEntity<>(responseJson.toString(), RestUtils.getResponseHeaders(), status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue