Permalink
Browse files

Also record the time in the rpc log

  • Loading branch information...
1 parent a788c63 commit 42b9f28fa05d30130696716c0d1940ccf52f7ed5 @ripienaar ripienaar committed Aug 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 audit/centralrpclog/agent/centralrpclog-mongodb.rb
@@ -36,7 +36,7 @@ def initialize
def handlemsg(msg, connection)
request = msg[:body]
- log = request.to_hash.merge({:senderid => msg[:senderid], :requestid => request.uniqid, :caller => "#{request.caller}@#{request.sender}"})
+ log = request.to_hash.merge({:senderid => msg[:senderid], :requestid => request.uniqid, :caller => "#{request.caller}@#{request.sender}", :time => Time.now.to_i})
@coll.save(log)

0 comments on commit 42b9f28

Please sign in to comment.