Skip to content
Snippets Groups Projects
Commit 8fa4f0ae authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Bugfix in logging

parent 5059da09
No related branches found
No related tags found
No related merge requests found
...@@ -379,7 +379,8 @@ public class ManagerResourceImpl implements ManagerResource{ ...@@ -379,7 +379,8 @@ public class ManagerResourceImpl implements ManagerResource{
// Deserialize the exception into string // Deserialize the exception into string
String res = resp.readEntity(String.class); String res = resp.readEntity(String.class);
// Log it // Log it
log.setMessage(res.substring(0,2047)); Integer substrEnd = Math.min(2047, res.length());
log.setMessage(res.substring(0,substrEnd));
ControllerGetter.getUserController().storeModelUsageLog(log); ControllerGetter.getUserController().storeModelUsageLog(log);
// Send exception // Send exception
throw new WebApplicationException(Response.status(resp.getStatus()).entity(res).build()); throw new WebApplicationException(Response.status(resp.getStatus()).entity(res).build());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment