Skip to content

fix: replace print with debugPrint#92

Merged
Yaswanth0606 merged 1 commit into
juspay:mainfrom
vijayrockers:fix/replace-print-with-debugprint
May 20, 2026
Merged

fix: replace print with debugPrint#92
Yaswanth0606 merged 1 commit into
juspay:mainfrom
vijayrockers:fix/replace-print-with-debugprint

Conversation

@vijayrockers
Copy link
Copy Markdown
Contributor

print statements should not be used in production Flutter code as they are not stripped in release builds. This PR replaces all print calls with debugPrint, which is the Flutter-recommended approach as it is automatically suppressed in release mode.

Changes:

Replaced all print calls with debugPrint across the example app and the core plugin
Fixed debugPrint(e) calls in catch blocks to use e.toString() since debugPrint expects a String?
Added missing flutter/foundation.dart import in generate_payload.dart

@Yaswanth0606 Yaswanth0606 merged commit d28176f into juspay:main May 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants