remove debug logs

This commit is contained in:
Brian Gough 2016-03-10 15:20:32 +00:00
parent 5ea7a31ad9
commit 10932eb4a9
2 changed files with 0 additions and 3 deletions

View file

@ -104,10 +104,8 @@ describe "Archiving updates", ->
it "should store 1024 doc changes in S3 in one pack", (done) ->
db.docHistoryIndex.findOne { _id: ObjectId(@doc_id) }, (error, index) =>
throw error if error?
console.log "index", index, JSON.stringify(index)
pack_id = index.packs[0]._id
TrackChangesClient.getS3Doc @project_id, @doc_id, pack_id, (error, doc) =>
console.log error, "DOC", doc
doc.n.should.equal 1024
doc.pack.length.should.equal 1024
done()

View file

@ -105,7 +105,6 @@ module.exports = TrackChangesClient =
options = TrackChangesClient.buildS3Options(true, project_id+"/changes-"+doc_id+"/pack-"+pack_id)
options.encoding = null
request.get options, (err, res, body) ->
console.log "body", typeof body
return callback(error) if error?
zlib.gunzip body, (err, result) ->
return callback(err) if err?