From 4074cd08cc64e1eb0fb22d45679a88bc3d94e907 Mon Sep 17 00:00:00 2001 From: Dmytro Date: Tue, 23 Jul 2024 15:39:16 +0100 Subject: [PATCH] Update legacy explorer url --- .gitignore | 4 +++- metrics/src/config.py | 2 +- metrics/src/explorer.py | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0cb48fb..93e39be 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,6 @@ chains.json metrics.json conf/upstreams/*.conf -conf/chains/*.conf \ No newline at end of file +conf/chains/*.conf + +portal-metrics.log \ No newline at end of file diff --git a/metrics/src/config.py b/metrics/src/config.py index b83fbb9..5c73a6e 100644 --- a/metrics/src/config.py +++ b/metrics/src/config.py @@ -33,7 +33,7 @@ BASE_EXPLORER_URLS = { 'mainnet': 'explorer.mainnet.skalenodes.com', - 'legacy': 'legacy-explorer.skaleserver.com', + 'legacy': 'legacy-explorer.skalenodes.com', 'regression': 'regression-explorer.skalenodes.com', 'testnet': 'explorer.testnet.skalenodes.com' } diff --git a/metrics/src/explorer.py b/metrics/src/explorer.py index 0fdd3a2..7b4a0c1 100644 --- a/metrics/src/explorer.py +++ b/metrics/src/explorer.py @@ -37,6 +37,7 @@ def get_chain_stats(network: str, chain_name: str) -> Any: response = requests.get(f'{explorer_url}/api/v2/stats') return response.json() except Exception as e: + logger.exception(e) logger.error(f'Failed to get chain stats: {e}') return None