From 284709cb7803e47a8e5b3b147cfd49bc748dd20a Mon Sep 17 00:00:00 2001 From: D Date: Tue, 17 Sep 2024 16:29:23 +0500 Subject: [PATCH] chore(ton): add debug logs --- src/handler/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/handler/index.ts b/src/handler/index.ts index 79b5828..0658dcf 100644 --- a/src/handler/index.ts +++ b/src/handler/index.ts @@ -130,7 +130,9 @@ export async function listenEvents( const [nonce, release] = await fetchNonce(); const [releaseStorage, storage] = await fetchStorage(); const feeData = await storageProvider.getFeeData(); - log.info(`Using nonce: ${nonce}, txHash: ${inft.transactionHash}`); + log.info( + `Using nonce: ${nonce}, txHash: ${inft.transactionHash} ${new Date().getSeconds()} ${+new Date()}`, + ); const response = await ( await storage.approveLockNft( inft.transactionHash, @@ -144,7 +146,9 @@ export async function listenEvents( }, ) ).wait(); - log.info(`Used nonce: ${nonce}, txHash: ${inft.transactionHash}`); + log.info( + `Used nonce: ${nonce}, txHash: ${inft.transactionHash} ${new Date().getSeconds()} ${+new Date()}`, + ); await setTimeout(5 * 1000); release(); releaseStorage();