From 4afdaa3806d59f5dd51ee13d19dc6e505ce4a3e9 Mon Sep 17 00:00:00 2001 From: ara-klaytn Date: Thu, 9 May 2024 15:19:59 +0800 Subject: [PATCH 1/2] add stack traces to slack error messages --- aptos-tx-latency-measurement/sendtx_aptos.js | 10 +++++----- arbitrium-tx-latency-measurement/sendtx_arbitrium.js | 11 ++++++----- avalanche-tx-latency-measurement/sendtx_avalanche.js | 10 +++++----- bnb-tx-latency-measurement/sendtx_bnb.js | 10 +++++----- elrond-tx-latency-measurement/sendtx_elrond.js | 10 +++++----- eos-tx-latency-measurement/sendtx_eos.js | 10 +++++----- fantom-tx-latency-measurement/sendtx_fantom.js | 10 +++++----- harmony-tx-latency-measurement/sendtx_harmony.js | 10 +++++----- hedera-tx-latency-measurement/sendtx_hedera.js | 10 +++++----- klaytn-tx-latency-measurement/sendtx_klaytn.js | 10 +++++----- near-tx-latency-measurement/sendtx_near.js | 10 +++++----- optimism-tx-latency-measurement/sendtx_optimism.js | 11 ++++++----- polkadot-tx-latency-measurement/sendtx_polkadot.js | 10 +++++----- polygon-tx-latency-measurement/sendtx_polygon.js | 10 +++++----- solana-tx-latency-measurement/sendtx_solana.js | 10 +++++----- sui-tx-latency-measurement/sendtx_sui.js | 10 +++++----- 16 files changed, 82 insertions(+), 80 deletions(-) diff --git a/aptos-tx-latency-measurement/sendtx_aptos.js b/aptos-tx-latency-measurement/sendtx_aptos.js index 881e135..a13e7ab 100644 --- a/aptos-tx-latency-measurement/sendtx_aptos.js +++ b/aptos-tx-latency-measurement/sendtx_aptos.js @@ -239,8 +239,8 @@ async function sendTx() { } } catch (err) { const now = new Date(); - await sendSlackMsg(`${now}, failed to execute aptos, ${err.toString()}`); - console.log("failed to execute.", err.toString()); + await sendSlackMsg(`${now}, failed to execute aptos, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack); data.error = err.toString(); console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -266,13 +266,13 @@ async function main() { try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } loadConfig(); @@ -280,5 +280,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } diff --git a/arbitrium-tx-latency-measurement/sendtx_arbitrium.js b/arbitrium-tx-latency-measurement/sendtx_arbitrium.js index 3c790cf..9ab44ed 100644 --- a/arbitrium-tx-latency-measurement/sendtx_arbitrium.js +++ b/arbitrium-tx-latency-measurement/sendtx_arbitrium.js @@ -270,8 +270,8 @@ async function sendTx() { // console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } catch (err) { const now = new Date(); - await sendSlackMsg(`${now}, failed to execute arbitrum, ${err.toString()}`); - console.log("failed to execute.", err.toString()); + await sendSlackMsg(`${now}, failed to execute arbitrum, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack); data.error = err.toString(); console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -311,6 +311,7 @@ async function l1commitmentprocess(db, hash, createdAt) { }; const response = await fetch(`${process.env.L1FINALITYSCRAPERURL}/root_end?from_chain=42161&hash=${hash}`); + console.log("l1GoResponseArb", response); if (!response.ok) { const postIndex = db.data.posts.findIndex((post) => post.l2TxHash === hash); if (postIndex !== -1) { @@ -361,13 +362,13 @@ async function main() { await sendTx() await l1Checker(); } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } @@ -376,5 +377,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } diff --git a/avalanche-tx-latency-measurement/sendtx_avalanche.js b/avalanche-tx-latency-measurement/sendtx_avalanche.js index 7e87990..edab9f6 100644 --- a/avalanche-tx-latency-measurement/sendtx_avalanche.js +++ b/avalanche-tx-latency-measurement/sendtx_avalanche.js @@ -240,8 +240,8 @@ const sendAvax = async (amount, to, maxFeePerGas = undefined, maxPriorityFeePerG } } catch(err){ const now = new Date(); - await sendSlackMsg(`${now}, failed to execute avalanche, ${err.toString()}`); - console.log("failed to execute.", err.toString()) + await sendSlackMsg(`${now}, failed to execute avalanche, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack) data.error = err.toString() console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -273,18 +273,18 @@ async function main(){ try{ await sendAvax("0.0", address); } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendAvax("0.0", address); } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } \ No newline at end of file diff --git a/bnb-tx-latency-measurement/sendtx_bnb.js b/bnb-tx-latency-measurement/sendtx_bnb.js index 3f21e29..79ea9c4 100644 --- a/bnb-tx-latency-measurement/sendtx_bnb.js +++ b/bnb-tx-latency-measurement/sendtx_bnb.js @@ -222,8 +222,8 @@ async function sendTx(){ } } catch(err){ const now = new Date(); - await sendSlackMsg(`${now}, failed to execute bnb, ${err.toString()}`); - console.log("failed to execute.", err.toString()) + await sendSlackMsg(`${now}, failed to execute bnb, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack) data.error = err.toString() console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -248,13 +248,13 @@ async function main(){ try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } @@ -262,5 +262,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } \ No newline at end of file diff --git a/elrond-tx-latency-measurement/sendtx_elrond.js b/elrond-tx-latency-measurement/sendtx_elrond.js index cea9436..721cfaa 100644 --- a/elrond-tx-latency-measurement/sendtx_elrond.js +++ b/elrond-tx-latency-measurement/sendtx_elrond.js @@ -240,8 +240,8 @@ async function sendTx(){ } } catch(err){ const now = new Date(); - await sendSlackMsg(`${now}, failed to execute elrond, ${err.toString()}`); - console.log("failed to execute.", err.toString()) + await sendSlackMsg(`${now}, failed to execute elrond, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack) data.error = err.toString() console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -273,13 +273,13 @@ async function main(){ try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } @@ -287,5 +287,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } \ No newline at end of file diff --git a/eos-tx-latency-measurement/sendtx_eos.js b/eos-tx-latency-measurement/sendtx_eos.js index d72e635..bc37762 100644 --- a/eos-tx-latency-measurement/sendtx_eos.js +++ b/eos-tx-latency-measurement/sendtx_eos.js @@ -217,8 +217,8 @@ async function sendTx(){ } } catch(err){ const now = new Date(); - await sendSlackMsg(`${now}, failed to execute eos, ${err.toString()}`); - console.log("failed to execute.", err.toString()) + await sendSlackMsg(`${now}, failed to execute eos, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack) data.error = err.toString() console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -234,13 +234,13 @@ async function main(){ try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } @@ -248,5 +248,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } \ No newline at end of file diff --git a/fantom-tx-latency-measurement/sendtx_fantom.js b/fantom-tx-latency-measurement/sendtx_fantom.js index 488428d..1bdfcb8 100644 --- a/fantom-tx-latency-measurement/sendtx_fantom.js +++ b/fantom-tx-latency-measurement/sendtx_fantom.js @@ -244,8 +244,8 @@ async function sendTx(){ } } catch(err){ const now = new Date(); - await sendSlackMsg(`${now}, failed to execute fantom, ${err.toString()}`); - console.log("failed to execute.", err.toString()) + await sendSlackMsg(`${now}, failed to execute fantom, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack) data.error = err.toString() console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -269,13 +269,13 @@ async function main(){ try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } @@ -283,5 +283,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } \ No newline at end of file diff --git a/harmony-tx-latency-measurement/sendtx_harmony.js b/harmony-tx-latency-measurement/sendtx_harmony.js index caf9c31..7d27537 100644 --- a/harmony-tx-latency-measurement/sendtx_harmony.js +++ b/harmony-tx-latency-measurement/sendtx_harmony.js @@ -232,8 +232,8 @@ async function sendTx() { } } catch (err) { const now = new Date(); - await sendSlackMsg(`${now}, failed to execute harmony, ${err.toString()}`); - console.log("failed to execute.", err.toString()); + await sendSlackMsg(`${now}, failed to execute harmony, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack); data.error = err.toString(); console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -257,13 +257,13 @@ async function main() { try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } @@ -271,5 +271,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } diff --git a/hedera-tx-latency-measurement/sendtx_hedera.js b/hedera-tx-latency-measurement/sendtx_hedera.js index b43ebfc..4afb33d 100644 --- a/hedera-tx-latency-measurement/sendtx_hedera.js +++ b/hedera-tx-latency-measurement/sendtx_hedera.js @@ -209,8 +209,8 @@ async function sendTx(){ } } catch(err){ const now = new Date(); - await sendSlackMsg(`${now}, failed to execute hedera, ${err.toString()}`); - console.log("failed to execute.", err.toString()) + await sendSlackMsg(`${now}, failed to execute hedera, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack) data.error = err.toString() console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -235,13 +235,13 @@ async function main(){ try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } @@ -249,5 +249,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } \ No newline at end of file diff --git a/klaytn-tx-latency-measurement/sendtx_klaytn.js b/klaytn-tx-latency-measurement/sendtx_klaytn.js index f3fcbd0..3297140 100644 --- a/klaytn-tx-latency-measurement/sendtx_klaytn.js +++ b/klaytn-tx-latency-measurement/sendtx_klaytn.js @@ -213,8 +213,8 @@ async function sendTx() { } } catch (err) { const now = new Date(); - await sendSlackMsg(`${now}, failed to execute Klaytn, ${err.toString()}`); - console.log("failed to execute.", err.toString()) + await sendSlackMsg(`${now}, failed to execute Klaytn, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack) data.error = err.toString() console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -240,13 +240,13 @@ async function main() { try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } loadConfig(); @@ -254,5 +254,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } \ No newline at end of file diff --git a/near-tx-latency-measurement/sendtx_near.js b/near-tx-latency-measurement/sendtx_near.js index e425161..a19ec13 100644 --- a/near-tx-latency-measurement/sendtx_near.js +++ b/near-tx-latency-measurement/sendtx_near.js @@ -292,8 +292,8 @@ async function sendTx() { } } catch(err){ const now = new Date(); - await sendSlackMsg(`${now}, failed to execute Near, ${err.toString()}`); - console.log("failed to execute.", err.toString()) + await sendSlackMsg(`${now}, failed to execute Near, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack) data.error = err.toString() console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -318,13 +318,13 @@ async function main (){ try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } @@ -336,5 +336,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } \ No newline at end of file diff --git a/optimism-tx-latency-measurement/sendtx_optimism.js b/optimism-tx-latency-measurement/sendtx_optimism.js index 990facb..4aef5df 100644 --- a/optimism-tx-latency-measurement/sendtx_optimism.js +++ b/optimism-tx-latency-measurement/sendtx_optimism.js @@ -273,8 +273,8 @@ async function sendTx() { } } catch (err) { const now = new Date(); - await sendSlackMsg(`${now}, failed to execute optimism, ${err.toString()}`); - console.log("failed to execute.", err.toString()); + await sendSlackMsg(`${now}, failed to execute optimism, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack); data.error = err.toString(); console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -313,6 +313,7 @@ async function l1commitmentprocess(db, hash, createdAt) { }; const response = await fetch(`${process.env.L1FINALITYSCRAPERURL}/root_end?from_chain=10&hash=${hash}`); + console.log("l1GoResponseOpt", response); if (!response.ok) { const postIndex = db.data.posts.findIndex((post) => post.l2TxHash === hash); if (postIndex !== -1) { @@ -364,13 +365,13 @@ async function main() { await sendTx() await l1Checker(); } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } @@ -378,5 +379,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } diff --git a/polkadot-tx-latency-measurement/sendtx_polkadot.js b/polkadot-tx-latency-measurement/sendtx_polkadot.js index 425bdea..dd99e4a 100644 --- a/polkadot-tx-latency-measurement/sendtx_polkadot.js +++ b/polkadot-tx-latency-measurement/sendtx_polkadot.js @@ -228,8 +228,8 @@ async function sendTx(){ }) } catch(err){ const now = new Date(); - await sendSlackMsg(`${now}, failed to execute polkadot, ${err.toString()}`); - console.log("failed to execute.", err.toString()) + await sendSlackMsg(`${now}, failed to execute polkadot, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack) data.error = err.toString() console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -256,13 +256,13 @@ async function main(){ try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } @@ -270,5 +270,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } \ No newline at end of file diff --git a/polygon-tx-latency-measurement/sendtx_polygon.js b/polygon-tx-latency-measurement/sendtx_polygon.js index be88a43..e453f11 100644 --- a/polygon-tx-latency-measurement/sendtx_polygon.js +++ b/polygon-tx-latency-measurement/sendtx_polygon.js @@ -245,8 +245,8 @@ async function sendTx(){ } } catch(err){ const now = new Date(); - await sendSlackMsg(`${now}, failed to execute polygon, ${err.toString()}`); - console.log("failed to execute.", err.toString()) + await sendSlackMsg(`${now}, failed to execute polygon, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack) data.error = err.toString() console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -270,18 +270,18 @@ async function main(){ try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } \ No newline at end of file diff --git a/solana-tx-latency-measurement/sendtx_solana.js b/solana-tx-latency-measurement/sendtx_solana.js index 84a4c60..1075aea 100644 --- a/solana-tx-latency-measurement/sendtx_solana.js +++ b/solana-tx-latency-measurement/sendtx_solana.js @@ -211,8 +211,8 @@ async function sendZeroSol(){ } } catch(err){ const now = new Date(); - await sendSlackMsg(`${now}, failed to execute solana, ${err.toString()}`); - console.log("failed to execute.", err.toString()) + await sendSlackMsg(`${now}, failed to execute solana, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack) data.error = err.toString() console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -238,13 +238,13 @@ async function main (){ try{ await sendZeroSol() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendZeroSol() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } @@ -252,5 +252,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } \ No newline at end of file diff --git a/sui-tx-latency-measurement/sendtx_sui.js b/sui-tx-latency-measurement/sendtx_sui.js index 31c496a..9253d18 100644 --- a/sui-tx-latency-measurement/sendtx_sui.js +++ b/sui-tx-latency-measurement/sendtx_sui.js @@ -249,8 +249,8 @@ async function sendTx() { } } catch (err) { const now = new Date(); - await sendSlackMsg(`${now}, failed to execute sui, ${err.toString()}`); - console.log("failed to execute.", err.toString()); + await sendSlackMsg(`${now}, failed to execute sui, ${err.toString()}, ${err.stack}`); + console.log("failed to execute.", err.toString(), err.stack); data.error = err.toString(); console.log(`${data.executedAt},${data.chainId},${data.txhash},${data.startTime},${data.endTime},${data.latency},${data.txFee},${data.txFeeInUSD},${data.resourceUsedOfLatestBlock},${data.numOfTxInLatestBlock},${data.pingTime},${data.error}`) } @@ -275,13 +275,13 @@ async function main() { try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } }, interval) try{ await sendTx() } catch(err){ - console.log("failed to execute sendTx", err.toString()) + console.log("failed to execute sendTx", err.toString(), err.stack) } } loadConfig(); @@ -289,5 +289,5 @@ try{ main() } catch(err){ - console.log("failed to execute main", err.toString()) + console.log("failed to execute main", err.toString(), err.stack) } From 025ffa3c28796f1be36e38e952a8fbbe196e8451 Mon Sep 17 00:00:00 2001 From: ara-klaytn Date: Mon, 3 Jun 2024 11:32:23 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index fc3a663..93af08c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ +[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/) + +# NO LONGER MAINTAINED + +Since the launch of Kaia Blockchain this repository has been parked in favour of the new open-source projects in [Kaia's Github](https://github.com/kaia-blockchain). Contributors have now moved there continuing with massive open-source contributions to our blockchain ecosystem. A big thank you to everyone who has contributed to this repository. For more information about Klaytn's chain merge with Finschia blockchain please refer to the launching of Kaia blockchain - [kaia.io](http://kaia.io/). + +-------- + + # Transaction Latency Measurement ### 1) Introduction