defined a log4j logger and log.error("msg", e) this instead