Permalink
Browse files

Add some missing information into the MongoDB RPC log

  • Loading branch information...
ripienaar committed Aug 4, 2010
1 parent e327d9e commit 70e2ab882ecd5946bd49274f6291f322ccb8f79c
Showing with 3 additions and 1 deletion.
  1. +3 −1 audit/centralrpclog/agent/centralrpclog-mongodb.rb
@@ -35,8 +35,10 @@ 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}"})
- @coll.save(request.to_hash)
+ @coll.save(log)
# never reply
nil

0 comments on commit 70e2ab8

Please sign in to comment.