Remove useless exception creation in log.