use Logger instead of PrintStackTrace.