Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: logs added for paze and samsung pay #812

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

sakksham7
Copy link
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Added logs for samsung pay and paze

How did you test it?

Tested via checking network calls

Checklist

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

@sakksham7 sakksham7 added the Ready for Review PR with label Ready for Review should only be reviewed. label Nov 28, 2024
@sakksham7 sakksham7 self-assigned this Nov 28, 2024
Copy link

semanticdiff-com bot commented Nov 28, 2024

Review changes with  SemanticDiff

Changed Files
File Status
  Hyperswitch-React-Demo-App/server.js  85% smaller
  Hyperswitch-React-Demo-App/package.json  0% smaller
  src/App.res Unsupported file format
  src/Payments/PazeButton.res Unsupported file format
  src/Payments/PazeWallet.res Unsupported file format
  src/Payments/SamsungPayComponent.res Unsupported file format
  src/hyper-loader/Elements.res Unsupported file format
  src/hyper-loader/Hyper.res Unsupported file format
  src/hyper-log-catcher/HyperLogger.res Unsupported file format

@@ -279,9 +278,12 @@ let make = (publishableKey, options: option<JSON.t>, analyticsInfo: option<JSON.
let samsungPayScript = Window.createElement("script")
samsungPayScript->Window.elementSrc(samsungPayScriptUrl)
samsungPayScript->Window.elementOnerror(err => {
Console.log2("ERROR LOADING SAMSUNG PAY SCRIPT", err)
logInfo(Console.log2("ERROR DURING LOADING SAMSUNG PAY SCRIPT", err))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it sending a network request? I believe it should be like

logger.setLogInfo(~value="ERROR DURING LOADING GOOGLE PAY SCRIPT", ~eventName=SAMSUNG_PAY_SCRIPT)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its just a normal console log, if the env is not prod then it will console for better debugging purposes, should this be changed to a log only?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for Review PR with label Ready for Review should only be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants