diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-03-14 09:06:02 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-03-14 09:13:48 +0800 |
commit | c8a8b851d8e0622559f71843a206a0e6e601cd83 (patch) | |
tree | 143e238a68005fdb0e0d82c6750ea890fec4021c /packages/testnet-faucets/src/ts/error_reporter.ts | |
parent | c2f8858aabad2355e09ba65e900202b7c4edec5e (diff) | |
download | dexon-sol-tools-c8a8b851d8e0622559f71843a206a0e6e601cd83.tar.gz dexon-sol-tools-c8a8b851d8e0622559f71843a206a0e6e601cd83.tar.zst dexon-sol-tools-c8a8b851d8e0622559f71843a206a0e6e601cd83.zip |
Consolidate all console.log into the @0xproject/utils package
Diffstat (limited to 'packages/testnet-faucets/src/ts/error_reporter.ts')
-rw-r--r-- | packages/testnet-faucets/src/ts/error_reporter.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/testnet-faucets/src/ts/error_reporter.ts b/packages/testnet-faucets/src/ts/error_reporter.ts index 7fd76bde5..f0f3ca679 100644 --- a/packages/testnet-faucets/src/ts/error_reporter.ts +++ b/packages/testnet-faucets/src/ts/error_reporter.ts @@ -1,8 +1,8 @@ +import { logUtils } from '@0xproject/utils'; import * as express from 'express'; import rollbar = require('rollbar'); import { configs } from './configs'; -import { utils } from './utils'; export const errorReporter = { setup() { @@ -11,7 +11,7 @@ export const errorReporter = { }); rollbar.handleUncaughtExceptions(configs.ROLLBAR_ACCESS_KEY); process.on('unhandledRejection', async (err: Error) => { - utils.consoleLog(`Uncaught exception ${err}. Stack: ${err.stack}`); + logUtils.log(`Uncaught exception ${err}. Stack: ${err.stack}`); await this.reportAsync(err); process.exit(1); }); @@ -23,7 +23,7 @@ export const errorReporter = { return new Promise((resolve, reject) => { rollbar.handleError(err, req, (rollbarErr: Error) => { if (rollbarErr) { - utils.consoleLog(`Error reporting to rollbar, ignoring: ${rollbarErr}`); + logUtils.log(`Error reporting to rollbar, ignoring: ${rollbarErr}`); reject(rollbarErr); } else { resolve(); |