aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-watcher/src/order_watcher/order_watcher.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-06 18:34:03 +0800
committerFabio Berger <me@fabioberger.com>2018-07-06 18:34:03 +0800
commit1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd (patch)
tree0d5f199ea9ed019f130487397a37d07f2bb8830d /packages/order-watcher/src/order_watcher/order_watcher.ts
parent32ad34d2241c8e23002a4a7fc267a8a2e92fb304 (diff)
downloaddexon-sol-tools-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.tar
dexon-sol-tools-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.tar.gz
dexon-sol-tools-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.tar.bz2
dexon-sol-tools-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.tar.lz
dexon-sol-tools-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.tar.xz
dexon-sol-tools-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.tar.zst
dexon-sol-tools-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.zip
Add isVerbose flag and log blockstream recoverable errors rather then bubbling them up
Diffstat (limited to 'packages/order-watcher/src/order_watcher/order_watcher.ts')
-rw-r--r--packages/order-watcher/src/order_watcher/order_watcher.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/order-watcher/src/order_watcher/order_watcher.ts b/packages/order-watcher/src/order_watcher/order_watcher.ts
index b28e9bc37..a822e9f56 100644
--- a/packages/order-watcher/src/order_watcher/order_watcher.ts
+++ b/packages/order-watcher/src/order_watcher/order_watcher.ts
@@ -90,7 +90,8 @@ export class OrderWatcher {
const pollingIntervalIfExistsMs = _.isUndefined(config) ? undefined : config.eventPollingIntervalMs;
const stateLayer =
_.isUndefined(config) || _.isUndefined(config.stateLayer) ? BlockParamLiteral.Latest : config.stateLayer;
- this._eventWatcher = new EventWatcher(this._web3Wrapper, pollingIntervalIfExistsMs, stateLayer);
+ const isVerbose = !_.isUndefined(config) && !_.isUndefined(config.isVerbose) ? config.isVerbose : false;
+ this._eventWatcher = new EventWatcher(this._web3Wrapper, pollingIntervalIfExistsMs, stateLayer, isVerbose);
this._balanceAndProxyAllowanceLazyStore = new BalanceAndProxyAllowanceLazyStore(
this._contractWrappers.token,
stateLayer,