Skip to content

Commit

Permalink
increase visibility of server and process information
Browse files Browse the repository at this point in the history
move server and process information to request section for the sake of
visibility. maybe can be better to create a application section, which
will include server, timestamp, application_root (rails_root) and
process id.
  • Loading branch information
Jonhnny Weslley committed Sep 10, 2013
1 parent 0c4141d commit cf5df62
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,4 @@
<span><%= inspect_object(filtered_env[key]) %></span>
</li>
<% end -%>
<li>
<strong>Process:</strong>
<span><%= raw $$ %></span>
</li>
<li>
<strong>Server:</strong>
<span><%= raw Socket.gethostname %></span>
</li>
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@
<% filtered_env.keys.map(&:to_s).sort.each do |key| -%>
* <%= raw("%-*s: %s" % [max.length, key, inspect_object(filtered_env[key])]) %>
<% end -%>

* Process: <%= raw $$ %>
* Server : <%= raw Socket.gethostname %>
12 changes: 10 additions & 2 deletions lib/exception_notifier/views/exception_notifier/_request.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,22 @@
<strong>Parameters:</strong>
<span><%= raw @request.filtered_parameters.inspect %></span>
</li>
<li>
<strong>Timestamp:</strong>
<span><%= raw Time.current %></span>
</li>
<li>
<strong>Server:</strong>
<span><%= raw Socket.gethostname %></span>
</li>
<% if defined?(Rails) %>
<li>
<strong>Rails root:</strong>
<span><%= raw Rails.root %></span>
</li>
<% end %>
<li>
<strong>Timestamp:</strong>
<span><%= raw Time.current %></span>
<strong>Process:</strong>
<span><%= raw $$ %></span>
</li>
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* HTTP Method: <%= raw @request.request_method %>
* IP address : <%= raw @request.remote_ip %>
* Parameters : <%= raw @request.filtered_parameters.inspect %>
* Timestamp : <%= raw Time.current %>
* Server : <%= raw Socket.gethostname %>
<% if defined?(Rails) %>
* Rails root : <%= raw Rails.root %>
<% end %>
* Timestamp : <%= raw Time.current %>
* Process: <%= raw $$ %>

0 comments on commit cf5df62

Please sign in to comment.