Skip to content

Commit

Permalink
fix: Improve logging for block deserialization in stardustTangleHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
msarcev committed Sep 28, 2022
1 parent d1b4841 commit a5c5143
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions api/src/utils/stardust/stardustTangleHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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);
}
}

Expand All @@ -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
);
}
}

Expand Down

0 comments on commit a5c5143

Please sign in to comment.