Skip to content

Commit 775221e

Browse files
7ttpmandarini
authored andcommitted
fix(realtime): remove console.log spam from toJson transformer
1 parent 31280b2 commit 775221e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/realtime-js/src/lib/transformers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ export const toJson = (value: RecordValue): RecordValue => {
189189
if (typeof value === 'string') {
190190
try {
191191
return JSON.parse(value)
192-
} catch (error) {
193-
console.log(`JSON parse error: ${error}`)
192+
} catch {
194193
return value
195194
}
196195
}

0 commit comments

Comments
 (0)