replace calls to printStackTrace with ErlLogger.error
better debug for 1163