Replaced printStackTrace() calls with Logger.log(Throwable).