mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Logging refractoring
This commit is contained in:
parent
876d1bcfd0
commit
1cb4884db5
5 changed files with 4 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue