concordia-publishing-house/errbit

View on GitHub
app/views/issue_trackers/lighthouseapp_body.txt.erb

Summary

Maintainability
Test Coverage
[See this exception on Errbit](<%= app_problem_url problem.app, problem %> "See this exception on Errbit")
<% if notice = problem.notices.first %>
  # <%= notice.message %> #
  ## Summary ##
  <% if notice.request['url'].present? %>
    ### URL ###
    [<%= notice.request['url'] %>](<%= notice.request['url'] %>)"
  <% end %>
  ### Where ###
  <%= notice.where %>

  ### Occured ###
  <%= notice.created_at.to_s(:micro) %>

  ### Similar ###
  <%= (notice.problem.notices_count - 1).to_s %>

  ## Params ##
  <code><%= pretty_hash(notice.params) %></code>

  ## Session ##
  <code><%= pretty_hash(notice.session) %></code>

  ## Backtrace ##
  <code>
  <% notice.backtrace_lines.each do |line| %><%= line.number %>:  <%= line.file_relative %> -> **<%= line.method %>**
  <% end %>
  </code>

  ## Environment ##
  <% for key, val in notice.env_vars %>
    <%= key %>: <%= val %>
  <% end %>
<% end %>