Skip to content

Commit

Permalink
remove logging from live events
Browse files Browse the repository at this point in the history
  • Loading branch information
Himyu committed Jan 8, 2024
1 parent 9232a5b commit 22d7f59
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions electron/module/LiveEventsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,11 @@ export class LiveEventsModule {

try {
const dataString = data.toString()
this.logger.info(dataString)

let newDataSting = dataString.replace(/(\\r\\n\\t|\n|\r|\\|\r\n|\t)/gm, "")
newDataSting = newDataSting.replace(/(}{)/gm, "},{")
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const parsedData: Array<any> = JSON.parse(`[${newDataSting}]`)
this.logger.info(parsedData)

const obj: LPTEvent = {
meta: {
Expand Down

0 comments on commit 22d7f59

Please sign in to comment.