While detaching an object from the datastore in a deployed app on Google App Engine, I’m getting an “failed to detach” exception that I can’t reproduce on my development box. The detach operation is server-side, so the only information I have on it is the log of the exception in the app’s log files. However, the stacktrace is elided: for example, the deepest internal exception ends with “… 36 more”.
How do I adjust the verbosity of the app’s logging to include the full, non-elided stacktrace?
There are few things that you can possibly tweak:
1) In
war\WEB-INF\logging.propertiesfile. Change the .level value to a level lower e.g. DEBUG.2) In your Java code, look at encapsulating the problem code within a
try/catchso that you have control of the same.3) In the
catchblock, look at logging the exception data viaex.printStackTrace(), where ex is the exception object.