mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 18:20:09 +02:00
remove debug logs
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user