Sha256: 3efd7c45d80440380435250733082539c859f474f163d9d27365a75e768a989d

Contents?: true

Size: 305 Bytes

Versions: 37

Compression:

Stored size: 305 Bytes

Contents

module Appsignal
  module CarefulLogger
    # Because Capistrano's logger uses the term important
    # instead of error.
    def carefully_log_error(message)
      if @logger.respond_to?(:important)
        @logger.important(message)
      else
        @logger.error(message)
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
appsignal-0.8.15 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.14 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.13 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.12 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.11 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.10 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.8 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.7 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.7.alpha.1 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.6 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.6.beta.1 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.6.beta.0 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.5 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.4 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.4.beta.1 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.4.beta.0 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.3 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.3.beta.1 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.3.beta.0 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.8.2 lib/appsignal/integrations/capistrano/careful_logger.rb