Permalink
Browse files

more informative messages in watch-oplog

  • Loading branch information...
1 parent 733acc8 commit bcd5eae945a8acecae3feb1996d9d4ecfde6533d @colinmarc colinmarc committed Mar 11, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/watch-oplog
View
@@ -11,15 +11,15 @@ module Mongoriver
include Mongoriver::Logging
def insert(db_name, collection_name, document)
- log.info("got an insert! #{document.inspect}")
+ log.info("got an insert for #{db_name}.#{collection_name}! #{document.inspect}")
end
def remove(db_name, collection_name, document)
- log.info("got a remove! #{document.inspect}")
+ log.info("got a remove for #{db_name}.#{collection_name}! #{document.inspect}")
end
def update(db_name, collection_name, selector, updates)
- log.info("got an update! #{selector}, #{updates}")
+ log.info("got an update for #{db_name}.#{collection_name}! #{selector}, #{updates}")
end
end
end

0 comments on commit bcd5eae

Please sign in to comment.