From 06983b631e7e090f5e5ada4a36a3dab59749cec6 Mon Sep 17 00:00:00 2001 From: Tilak Puli Date: Tue, 10 Oct 2023 10:14:13 +0530 Subject: [PATCH] feat(inji-406): add tag to identify logs for vc tampering --- shared/storage.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/shared/storage.ts b/shared/storage.ts index 077d31068d..4f0d754de9 100644 --- a/shared/storage.ts +++ b/shared/storage.ts @@ -83,14 +83,19 @@ class Storage { const isCorrupted = await this.isCorruptedVC(key, encryptionKey, data); if (isCorrupted) { - console.debug('VC is corrupted and will be deleted from storage'); - console.debug('VC key: ', key); - console.debug('is Data null', data === null); + console.debug( + '[Inji-406]: VC is corrupted and will be deleted from storage', + ); + console.debug('[Inji-406]: VC key: ', key); + console.debug('[Inji-406]: is Data null', data === null); getItem(MY_VCS_STORE_KEY, [], encryptionKey).then(res => { - console.debug('vcKeys are ', JSON.stringify(res)); + console.debug('[Inji-406]: vcKeys are ', JSON.stringify(res)); }); getItem(RECEIVED_VCS_STORE_KEY, null, encryptionKey).then(res => { - console.debug('received vcKeys is ', JSON.stringify(res)); + console.debug( + '[Inji-406]: received vcKeys is ', + JSON.stringify(res), + ); }); }