From 811b1a27f18ef0dd26282cf219ea6581b5f40938 Mon Sep 17 00:00:00 2001 From: Alexander Kolotov Date: Mon, 21 Dec 2020 22:16:37 +0300 Subject: [PATCH] setLogger added to the RedundantHttpListProvider (#501) --- oracle/src/services/RedundantHttpListProvider.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oracle/src/services/RedundantHttpListProvider.js b/oracle/src/services/RedundantHttpListProvider.js index 3dc121b8..929fbd85 100644 --- a/oracle/src/services/RedundantHttpListProvider.js +++ b/oracle/src/services/RedundantHttpListProvider.js @@ -15,6 +15,10 @@ function RedundantHttpListProvider(urls, 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) { try { const result = await promiseRetry(retry => {