def log_user_activity_end(id, has_error = false)
      return do_nothing_on_null(:log_user_activity_end) if null?
      @transaction.log_activity_end(id, UnionStationHooks.now, has_error)
    end
def log_user_activity_end(id, has_error = false)
      return do_nothing_on_null(:log_user_activity_end) if null?
      @transaction.log_activity_end(id, UnionStationHooks.now, has_error)
    end
Logs the end of a user-defined activity, for display in the
 activity timeline.

 An activity is a block in the activity timeline in the Union Station
 user interace. It has a name, a begin time and an end time.

 This form logs only the name and the end time. You *must* also
 have called {#log_user_activity_begin} earlier with the same name to log
 the begin time.

 @param id The ID which you obtained from {#log_user_activity_begin}
   earlier.
 @param [Boolean] has_error Whether an uncaught
   exception occurred during the activity.