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

Make debug logging of typesense imports expicit and configurable #101

Merged
merged 4 commits into from
Jan 21, 2025

Conversation

jsasitorn
Copy link
Contributor

Change Summary

Standardize debug logging for typesense inserts and make this configurable in extension settings. For debugging purposes its good to log inserts, but added support to disable this for production environments.

To better support testing, created a node based test environment runner that can setup firebase environment and run the emulator. This approach also helps streamline testing in package.json and reduce boiler template in test cases. This also allows test case to verify server logs.

PR Checklist

…his standardizes logging across both .onWrite and .backfill, and allows disabling

logging for production builds and improved data privacy. Option can be turned off an off in firebase extension config using LOG_TYPESENSE_INSERTS
@jsasitorn
Copy link
Contributor Author

@jasonbosco something i need to do to get tests running? Thanks

test/support/testEnvironment.js Show resolved Hide resolved
package.json Show resolved Hide resolved
@jasonbosco jasonbosco merged commit 3d66da6 into typesense:master Jan 21, 2025
2 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.

3 participants