diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pods.js | 1 | ||||
-rw-r--r-- | src/poolRequests.js | 1 | ||||
-rw-r--r-- | src/utils.js | 5 |
3 files changed, 1 insertions, 6 deletions
diff --git a/src/pods.js b/src/pods.js index 9afc6cc96..a0dbb6b68 100644 --- a/src/pods.js +++ b/src/pods.js | |||
@@ -97,7 +97,6 @@ | |||
97 | var pods_list = computeWinningPods(urls, pods_score) | 97 | var pods_list = computeWinningPods(urls, pods_score) |
98 | logger.debug('Pods that we keep computed.', { pods_to_keep: pods_list }) | 98 | logger.debug('Pods that we keep computed.', { pods_to_keep: pods_list }) |
99 | 99 | ||
100 | logger.debug('Make requests...') | ||
101 | makeRequestsToWinningPods(cert, pods_list) | 100 | makeRequestsToWinningPods(cert, pods_list) |
102 | }) | 101 | }) |
103 | }) | 102 | }) |
diff --git a/src/poolRequests.js b/src/poolRequests.js index ee6c0156e..391ed6ab2 100644 --- a/src/poolRequests.js +++ b/src/poolRequests.js | |||
@@ -74,7 +74,6 @@ | |||
74 | } | 74 | } |
75 | 75 | ||
76 | function makePoolRequest (type, requests) { | 76 | function makePoolRequest (type, requests) { |
77 | logger.debug('Make pool requests scheduled.') | ||
78 | PodsDB.find({}, { _id: 1, url: 1, publicKey: 1 }).exec(function (err, pods) { | 77 | PodsDB.find({}, { _id: 1, url: 1, publicKey: 1 }).exec(function (err, pods) { |
79 | if (err) throw err | 78 | if (err) throw err |
80 | 79 | ||
diff --git a/src/utils.js b/src/utils.js index 4aa1fc55e..30edcd0e9 100644 --- a/src/utils.js +++ b/src/utils.js | |||
@@ -30,7 +30,7 @@ | |||
30 | } | 30 | } |
31 | } | 31 | } |
32 | 32 | ||
33 | logger.debug('Sending informations to %s.', to_pod.url, { params: params }) | 33 | logger.debug('Make retry requests to %s.', to_pod.url) |
34 | // Default 10 but in tests we want to be faster | 34 | // Default 10 but in tests we want to be faster |
35 | var retries = utils.isTestInstance() ? 2 : 10 | 35 | var retries = utils.isTestInstance() ? 2 : 10 |
36 | 36 | ||
@@ -84,8 +84,6 @@ | |||
84 | 84 | ||
85 | // Add data with POST requst ? | 85 | // Add data with POST requst ? |
86 | if (all_data.method === 'POST' && all_data.data) { | 86 | if (all_data.method === 'POST' && all_data.data) { |
87 | logger.debug('Make a POST request.') | ||
88 | |||
89 | // Encrypt data ? | 87 | // Encrypt data ? |
90 | if (all_data.encrypt === true) { | 88 | if (all_data.encrypt === true) { |
91 | var crt = ursa.createPublicKey(pod.publicKey) | 89 | var crt = ursa.createPublicKey(pod.publicKey) |
@@ -109,7 +107,6 @@ | |||
109 | makeRetryRequest(params, url, pod, signature, callbackEachRetryRequest) | 107 | makeRetryRequest(params, url, pod, signature, callbackEachRetryRequest) |
110 | } | 108 | } |
111 | } else { | 109 | } else { |
112 | logger.debug('Make a GET/DELETE request') | ||
113 | makeRetryRequest(params, url, pod, signature, callbackEachRetryRequest) | 110 | makeRetryRequest(params, url, pod, signature, callbackEachRetryRequest) |
114 | } | 111 | } |
115 | }, callback) | 112 | }, callback) |