Skip to content

Commit 7d8dba9

Browse files
committed
[DDW-1190] Added logger
1 parent 50fceca commit 7d8dba9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Fixes
66

7-
- Fixed decimals for syncing percentage ([PR ](https://github.com/input-output-hk/daedalus/pull/))
7+
- Fixed decimals for syncing percentage ([PR 3106](https://github.com/input-output-hk/daedalus/pull/3106))
88

99
## 5.2.0
1010

source/renderer/app/components/loading/syncing-connecting/SyncingProgress/SyncingProgress.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
getProgressDescriptionByBlockSyncType,
1515
getProgressNameByBlockSyncType,
1616
} from './utils';
17+
import { logger } from '../../../../utils/logging';
1718

1819
type Props = Record<BlockSyncType, number>;
1920

@@ -45,6 +46,9 @@ const getSafePercentage = (value: number): string => {
4546
try {
4647
return new BigNumber(value).toFixed(2).toString();
4748
} catch (error) {
49+
logger.error('SyncingProgress::Percentage::Error parsing sync percentage', {
50+
error,
51+
});
4852
return '-';
4953
}
5054
};

0 commit comments

Comments
 (0)