setLogger added to the RedundantHttpListProvider (#501)
This commit is contained in:
parent
4d468ae107
commit
811b1a27f1
@ -15,6 +15,10 @@ function RedundantHttpListProvider(urls, options = {}) {
|
|||||||
this.options = { ...defaultOptions, ...options }
|
this.options = { ...defaultOptions, ...options }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RedundantHttpListProvider.prototype.setLogger = function(logger) {
|
||||||
|
this.logger = logger.child({ module: `RedundantHttpListProvider:${this.options.name}` })
|
||||||
|
}
|
||||||
|
|
||||||
RedundantHttpListProvider.prototype.send = async function send(payload, callback) {
|
RedundantHttpListProvider.prototype.send = async function send(payload, callback) {
|
||||||
try {
|
try {
|
||||||
const result = await promiseRetry(retry => {
|
const result = await promiseRetry(retry => {
|
||||||
|
Loading…
Reference in New Issue
Block a user