Sha256: 6b2c994df0ed6f860a6f5069b6964fac4bcf0dabd02f6809f33c0cf0d344c4c7

Contents?: true

Size: 598 Bytes

Versions: 11

Compression:

Stored size: 598 Bytes

Contents

class Logster::Middleware::DebugExceptions < ActionDispatch::DebugExceptions
  private

  def log_error(env,wrapper)
    exception = wrapper.exception

    Logster.config.current_context.call(env) do
      location = exception.backtrace[0]
      exception_string = exception.to_s

      Logster.logger.add_with_opts(::Logger::Severity::FATAL,
                        exception.class.to_s << " (" << exception_string << ")\n#{location}",
                        "web-exception",
                        backtrace: exception.backtrace.join("\n"),
                        env: env)
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
logster-1.2.7 lib/logster/middleware/debug_exceptions.rb
logster-1.2.6 lib/logster/middleware/debug_exceptions.rb
logster-1.2.5 lib/logster/middleware/debug_exceptions.rb
logster-1.2.4 lib/logster/middleware/debug_exceptions.rb
logster-1.2.3 lib/logster/middleware/debug_exceptions.rb
logster-1.2.2 lib/logster/middleware/debug_exceptions.rb
logster-1.2.1 lib/logster/middleware/debug_exceptions.rb
logster-1.2.0 lib/logster/middleware/debug_exceptions.rb
logster-1.1.1 lib/logster/middleware/debug_exceptions.rb
logster-1.0.1 lib/logster/middleware/debug_exceptions.rb
logster-1.0.0.3.pre lib/logster/middleware/debug_exceptions.rb