From 540aa7df00f450fff79d7513fb9666cef60c268d Mon Sep 17 00:00:00 2001 From: Ray Nicholus Date: Wed, 17 Feb 2016 09:29:17 +0700 Subject: [PATCH] refactor(concurrent chunking): too much logging #1519 --- client/js/upload-handler/upload.handler.controller.js | 2 +- client/js/upload-handler/xhr.upload.handler.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/js/upload-handler/upload.handler.controller.js b/client/js/upload-handler/upload.handler.controller.js index c6ca82998..575fad561 100644 --- a/client/js/upload-handler/upload.handler.controller.js +++ b/client/js/upload-handler/upload.handler.controller.js @@ -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(); diff --git a/client/js/upload-handler/xhr.upload.handler.js b/client/js/upload-handler/xhr.upload.handler.js index 9443cc42a..a081e59b9 100644 --- a/client/js/upload-handler/xhr.upload.handler.js +++ b/client/js/upload-handler/xhr.upload.handler.js @@ -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);