Skip to content

Commit

Permalink
Remove logging of raw pymongo docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jlubken committed Oct 14, 2020
1 parent e4eb4f4 commit 6479745
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/dsdk/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,11 @@ def open_batch(self) -> Generator[Batch, None, None]:
batch = Batch(parent)
doc = batch.as_insert_doc()
with mongo.connect() as database:
logger.info(doc)
key = mongo.insert_one(database.batches, doc)
yield batch

key, values = batch.as_update_doc()
with mongo.connect() as database:
logger.info(values)
mongo.update_one(database.batches, key, {"$set": values})

def store_evidence(self, batch: Any, *args, **kwargs) -> None:
Expand Down

0 comments on commit 6479745

Please sign in to comment.