Use `log.exception` instead.