You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: logging_observer.rb
    path of file: ./repos/sidekiq-merger/lib/sidekiq/merger
    
    the code of the file until where you have to start completion: class Sidekiq::Merger::LoggingObserver
  def initialize(logger)
    @logger = logger
  end

  def update(time, _result, ex)
    if ex.is_a?(Concurrent::TimeoutE
    
  def update(time, _result, ex)
    if ex.is_a?(Concurrent::TimeoutError)
      @logger.error(
        "[#{Sidekiq::Merger::LOGGER_TAG}] Execution timed out\n"
      )
    elsif ex.present?
      @logger.error(
        "[#{Sidekiq::Merger::LOGGER_TAG}] Execution failed with error #{ex}\n"
      )
    end