aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-12-06 21:36:57 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-12-07 17:22:36 +0100
commit1cb4884db56c774e89db80bd0e79a9765441548d (patch)
treee292069f7fc3dee470b0e414cfb3add5e46b3e91 /src/utils.js
parent876d1bcfd07b14d47ba377474e3bb680872d1f7a (diff)
downloadPeerTube-1cb4884db56c774e89db80bd0e79a9765441548d.tar.gz
PeerTube-1cb4884db56c774e89db80bd0e79a9765441548d.tar.zst
PeerTube-1cb4884db56c774e89db80bd0e79a9765441548d.zip
Logging refractoring
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js5
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)