From a5c51432c58c04dbcae8927b9aac99df22f92da1 Mon Sep 17 00:00:00 2001 From: Mario Sarcevic Date: Wed, 28 Sep 2022 17:17:15 +0200 Subject: [PATCH] fix: Improve logging for block deserialization in stardustTangleHelper --- api/src/utils/stardust/stardustTangleHelper.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/api/src/utils/stardust/stardustTangleHelper.ts b/api/src/utils/stardust/stardustTangleHelper.ts index cdc571698..e5b8064d3 100644 --- a/api/src/utils/stardust/stardustTangleHelper.ts +++ b/api/src/utils/stardust/stardustTangleHelper.ts @@ -104,7 +104,7 @@ export class StardustTangleHelper { }; } } catch (e) { - console.log("Block deserialization failed.", e); + console.log(`Block deserialization failed for block with transaction id ${transactionId}.`, e); } } @@ -430,7 +430,7 @@ export class StardustTangleHelper { }; } } catch (e) { - console.log("Block deserialization failed.", e); + console.log(`Block deserialization failed for block with block id ${searchQuery.blockId}.`, e); } } @@ -449,7 +449,10 @@ export class StardustTangleHelper { }; } } catch (e) { - console.log("Block deserialization failed.", e); + console.log( + `Block deserialization failed for block with transaction id ${searchQuery.transactionId}.`, + e + ); } }