Replace e.printStackTrace() with log.warn(e.getMessage(), e)

Fix for #174