VIVO-230 Make the log messages more explicit, so we have a chance of diagnosing this.
This commit is contained in:
parent
73f7604920
commit
95538e4c8a
2 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ public abstract class JsonObjectProducer extends JsonProducer {
|
|||
try {
|
||||
jsonObject = process();
|
||||
} catch (Exception e) {
|
||||
log.error("Failed to create JSON response" + e);
|
||||
log.error("Failed to create JSON response", e);
|
||||
errorMessage = e.toString();
|
||||
resp.setStatus(500 /* HttpURLConnection.HTTP_SERVER_ERROR */);
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ public abstract class JsonProducer {
|
|||
VClass vclass = vreq.getWebappDaoFactory().getVClassDao()
|
||||
.getVClassByURI(uri);
|
||||
if (vclass == null) {
|
||||
log.error("Couldn't retrieve vclass ");
|
||||
log.error("Couldn't retrieve vclass '" + uri + "'");
|
||||
throw new IllegalStateException("Class " + uri + " not found");
|
||||
}
|
||||
return vclass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue