log_err() before asserting