Skip to content

fix: replace print with debugPrint#92

Open
vijayrockers wants to merge 1 commit into
juspay:mainfrom
vijayrockers:fix/replace-print-with-debugprint
Open

fix: replace print with debugPrint#92
vijayrockers wants to merge 1 commit into
juspay:mainfrom
vijayrockers:fix/replace-print-with-debugprint

Conversation

@vijayrockers
Copy link
Copy Markdown

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

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.

1 participant