Use logger instead of e.printStackTrace