Skip to content

Commit 72566c9

Browse files
authored
chore(realtime): remove console.log spam from toJson transformer (#1938)
1 parent b0cbff8 commit 72566c9

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)