Skip to content

Commit

Permalink
refactor: moved logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sakksham7 committed Nov 28, 2024
1 parent 3f5212e commit b342ce4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/Payments/PazeWallet.res
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ let make = (~logger: HyperLogger.loggerMake) => {
)
Console.log2("PAZE --- errrorrr", err)
})
pazeScript->Window.elementOnload(_ => loadPazeSDK()->ignore)
pazeScript->Window.elementOnload(_ => {
logger.setLogInfo(~value="Pzae SDK Script Loaded", ~eventName=PAZE_SDK_FLOW)
loadPazeSDK()->ignore
})
Window.body->Window.appendChild(pazeScript)
}

Expand All @@ -138,7 +141,6 @@ let make = (~logger: HyperLogger.loggerMake) => {
]->Array.every(x => x != "")
) {
mountPazeSDK()
logger.setLogInfo(~value="Pzae SDK Script Loaded", ~eventName=PAZE_SDK_FLOW)
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/hyper-loader/Hyper.res
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ let make = (publishableKey, options: option<JSON.t>, analyticsInfo: option<JSON.
Utils.logInfo(Console.log2("ERROR DURING LOADING SAMSUNG PAY SCRIPT", err))
})
Window.body->Window.appendChild(samsungPayScript)
logger.setLogInfo(~value="SamsungPay Script Loaded", ~eventName=SAMSUNG_PAY_SCRIPT)
samsungPayScript->Window.elementOnload(_ =>
logger.setLogInfo(~value="SamsungPay Script Loaded", ~eventName=SAMSUNG_PAY_SCRIPT)
)
}

let iframeRef = ref([])
Expand Down

0 comments on commit b342ce4

Please sign in to comment.