Sha256: 52446f0d67c6dfbd0cb208f44a6c238644ea58c885a4e526b57893ec74d42a35

Contents?: true

Size: 307 Bytes

Versions: 152

Compression:

Stored size: 307 Bytes

Contents

module Appsignal
  module CarefulLogger
    # Because Capistrano 2'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

152 entries across 152 versions & 1 rubygems

Version Path
appsignal-0.12.rc.10 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.rc.9 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.rc.8 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.rc.7 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.rc.6 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.rc.5 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.beta.54 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.beta.53 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.beta.52 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.beta.51 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.11.17 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.beta.50 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.beta.49 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.11.16 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.beta.48 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.beta.47 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.beta.46 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.beta.45 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.beta.44 lib/appsignal/integrations/capistrano/careful_logger.rb
appsignal-0.12.beta.43 lib/appsignal/integrations/capistrano/careful_logger.rb