mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
ZEPPELIN-773: log error in all other status code
This commit is contained in:
parent
3deca713f6
commit
9833c59383
1 changed files with 4 additions and 3 deletions
|
|
@ -362,14 +362,15 @@ public class LivyHelper {
|
|||
|| response.getStatusLine().getStatusCode() == 201
|
||||
|| response.getStatusLine().getStatusCode() == 404) {
|
||||
return getResponse(response);
|
||||
} else if (response.getStatusLine().getStatusCode() == 500) {
|
||||
} else {
|
||||
String responseString = getResponse(response);
|
||||
if (responseString.contains("CreateInteractiveRequest[\\\"master\\\"]")) {
|
||||
return responseString;
|
||||
}
|
||||
LOGGER.error("Error with 500 StatusCode: ", responseString);
|
||||
LOGGER.error(String.format("Error with %s StatusCode: %s",
|
||||
response.getStatusLine().getStatusCode(), responseString));
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private String getResponse(HttpResponse response) throws Exception {
|
||||
|
|
|
|||
Loading…
Reference in a new issue