Skip to content

Commit

Permalink
removed pesky log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
esedor committed Aug 17, 2012
1 parent 5bc1457 commit 6b4e756
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dex/dex.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,18 +279,14 @@ def _tail_profile(self, db, interval):
latest_doc = db['system.profile'].find_one()

current_time = latest_doc['ts']
print "starting at", current_time

while True:
time.sleep(interval)
cursor = db['system.profile'].find({'ts': {'$gte': current_time}}).sort('ts', pymongo.ASCENDING)
for doc in cursor:
current_time = doc['ts']
print current_time
yield doc

print "found", cursor.count()


############################################################################
def _tuplefy_namespace(self, namespace):
Expand Down

0 comments on commit 6b4e756

Please sign in to comment.