Changed log to log_error