diff --git a/apps/canonical-bridge-server/src/shared/web3/web3.service.ts b/apps/canonical-bridge-server/src/shared/web3/web3.service.ts index 77d4cd8c..35a3a4cb 100644 --- a/apps/canonical-bridge-server/src/shared/web3/web3.service.ts +++ b/apps/canonical-bridge-server/src/shared/web3/web3.service.ts @@ -66,7 +66,7 @@ export class Web3Service { ); return data; } catch (e) { - console.error(`Failed to retrieve cBridge data at ${new Date().getTime()}`, e); + console.error(`Failed to retrieve cBridge data at ${new Date().getTime()}`, e.message); return {}; } } @@ -79,7 +79,7 @@ export class Web3Service { return data; } catch (e) { - console.error(`Failed to retrieve DeBridge chain data at ${new Date().getTime()}`, e); + console.error(`Failed to retrieve DeBridge chain data at ${new Date().getTime()}`, e.message); return { chains: [] }; } } @@ -94,7 +94,7 @@ export class Web3Service { } catch (e) { console.error( `Failed to retrieve DeBridge token data from ${chainId} at ${new Date().getTime()}`, - e, + e.message, ); return { tokens: {} }; } @@ -117,7 +117,7 @@ export class Web3Service { }); return processedTokenList; } catch (e) { - console.log(`Failed to retrieve Stargate API data at ${new Date().getTime()}`, e); + console.error(`Failed to retrieve Stargate API data at ${new Date().getTime()}`, e.message); return []; } }