Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Commit

Permalink
refactor(concurrent chunking): too much logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rnicholus committed Feb 17, 2016
1 parent 14633b3 commit 540aa7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/js/upload-handler/upload.handler.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ qq.UploadHandlerController = function(o, namespace) {
if (concurrentChunkingPossible) {
handler._getFileState(id).temp.ignoreFailure = true;

log(qq.format("Going to attempt to abort these chunks: {}. These are currently in-progress: {}, and these are remaining: {}.", JSON.stringify(Object.keys(handler._getXhrs(id))), JSON.stringify(handler._getFileState(id).chunking.inProgress), JSON.stringify(handler._getFileState(id).chunking.remaining)));
log(qq.format("Going to attempt to abort these chunks: {}. These are currently in-progress: {}.", JSON.stringify(Object.keys(handler._getXhrs(id))), JSON.stringify(handler._getFileState(id).chunking.inProgress)));
qq.each(handler._getXhrs(id), function(ckid, ckXhr) {
log(qq.format("Attempting to abort file {}.{}. XHR readyState {}. ", id, ckid, ckXhr.readyState));
ckXhr.abort();
Expand Down
2 changes: 1 addition & 1 deletion client/js/upload-handler/xhr.upload.handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ qq.XhrUploadHandler = function(spec) {
remaining = optRemaining || handler._getFileState(id).chunking.remaining;

if (inProgress) {
log(qq.format("Moving these chunks from in-progress {}, to remaining {}.", JSON.stringify(inProgress), JSON.stringify(remaining)));
log(qq.format("Moving these chunks from in-progress {}, to remaining.", JSON.stringify(inProgress)));
inProgress.reverse();
qq.each(inProgress, function(idx, chunkIdx) {
remaining.unshift(chunkIdx);
Expand Down

0 comments on commit 540aa7d

Please sign in to comment.