diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-06 18:34:03 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-06 18:34:03 +0800 |
commit | 1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd (patch) | |
tree | 0d5f199ea9ed019f130487397a37d07f2bb8830d /packages/order-watcher/src/order_watcher/order_watcher.ts | |
parent | 32ad34d2241c8e23002a4a7fc267a8a2e92fb304 (diff) | |
download | dexon-0x-contracts-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.tar dexon-0x-contracts-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.tar.gz dexon-0x-contracts-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.tar.bz2 dexon-0x-contracts-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.tar.lz dexon-0x-contracts-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.tar.xz dexon-0x-contracts-1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd.tar.zst dexon-0x-contracts-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.ts | 3 |
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, |