Skip to content

Commit

Permalink
Merge pull request #171 from FiguredOnFarm/add-pid-to-server-data
Browse files Browse the repository at this point in the history
Add Process ID to server data
  • Loading branch information
brianr committed Nov 13, 2014
2 parents 87dbdf7 + 5b92177 commit f56cfa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/rollbar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ def server_data
}
data[:root] = configuration.root.to_s if configuration.root
data[:branch] = configuration.branch if configuration.branch
data[:pid] = Process.pid

data
end
Expand Down
2 changes: 1 addition & 1 deletion spec/rollbar_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
end

it 'should have the correct server keys' do
payload['data'][:server].keys.should match_array([:host, :root])
payload['data'][:server].keys.should match_array([:host, :root, :pid])
end

it 'should have the correct level and message body' do
Expand Down

0 comments on commit f56cfa7

Please sign in to comment.