Allow log_error function to take array data