diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2015-12-06 21:36:57 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2015-12-07 17:22:36 +0100 |
commit | 1cb4884db56c774e89db80bd0e79a9765441548d (patch) | |
tree | e292069f7fc3dee470b0e414cfb3add5e46b3e91 /src/utils.js | |
parent | 876d1bcfd07b14d47ba377474e3bb680872d1f7a (diff) | |
download | PeerTube-1cb4884db56c774e89db80bd0e79a9765441548d.tar.gz PeerTube-1cb4884db56c774e89db80bd0e79a9765441548d.tar.zst PeerTube-1cb4884db56c774e89db80bd0e79a9765441548d.zip |
Logging refractoring
Diffstat (limited to 'src/utils.js')
-rw-r--r-- | src/utils.js | 5 |
1 files changed, 1 insertions, 4 deletions
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) |