From 1cb4884db56c774e89db80bd0e79a9765441548d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 6 Dec 2015 21:36:57 +0100 Subject: Logging refractoring --- src/pods.js | 1 - src/poolRequests.js | 1 - src/utils.js | 5 +---- 3 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src') 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 @@ var pods_list = computeWinningPods(urls, pods_score) logger.debug('Pods that we keep computed.', { pods_to_keep: pods_list }) - logger.debug('Make requests...') makeRequestsToWinningPods(cert, pods_list) }) }) 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 @@ } function makePoolRequest (type, requests) { - logger.debug('Make pool requests scheduled.') PodsDB.find({}, { _id: 1, url: 1, publicKey: 1 }).exec(function (err, pods) { if (err) throw err 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 @@ } } - logger.debug('Sending informations to %s.', to_pod.url, { params: params }) + logger.debug('Make retry requests to %s.', to_pod.url) // Default 10 but in tests we want to be faster var retries = utils.isTestInstance() ? 2 : 10 @@ -84,8 +84,6 @@ // Add data with POST requst ? if (all_data.method === 'POST' && all_data.data) { - logger.debug('Make a POST request.') - // Encrypt data ? if (all_data.encrypt === true) { var crt = ursa.createPublicKey(pod.publicKey) @@ -109,7 +107,6 @@ makeRetryRequest(params, url, pod, signature, callbackEachRetryRequest) } } else { - logger.debug('Make a GET/DELETE request') makeRetryRequest(params, url, pod, signature, callbackEachRetryRequest) } }, callback) -- cgit v1.2.3