-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat(firestore): add the ability to enable debug logging #11019
Conversation
@@ -141,7 +141,7 @@ jobs: | |||
run-bootstrap: false | |||
melos-version: '3.0.1' | |||
- name: 'Bootstrap package' | |||
run: melos bootstrap --scope tests | |||
run: melos bootstrap --scope tests && melos bootstrap --scope "cloud_firestore*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason why this now fails on Firestore? I noticed this on my own PR 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've refactored the CI to use the same thing on test and cloud_firestore, but forgot to bootstrap those with melos. It would fail because it uses the pub.dev version :/
@@ -547,6 +549,14 @@ - (void)namedQueryGet:(id)arguments withMethodCallResult:(FLTFirebaseMethodCallR | |||
}]; | |||
} | |||
|
|||
- (void)setLoggingEnabled:(id)arguments withMethodCallResult:(FLTFirebaseMethodCallResult *)result { | |||
FIRFirestore *firestore = arguments[@"firestore"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
try { | ||
await channel | ||
.invokeMethod<void>('Firestore#setLoggingEnabled', <String, dynamic>{ | ||
'firestore': this, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
Description
Adding a static function to enable debug logging.
Related Issues
closes #10995
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
).This will ensure a smooth and quick review process. Updating the
pubspec.yaml
and changelogs is not required.///
).melos run analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?