-
Notifications
You must be signed in to change notification settings - Fork 3
fix(logger): fix custom logger #528
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
Conversation
🦋 Changeset detectedLatest commit: ad81c13 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📝 WalkthroughWalkthroughModified the logger fallback dispatch in one file: replaced logical-OR fallbacks with explicit ternary checks so a provided custom logger is invoked (and its falsy return no longer triggers the console fallback). Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit ad81c13
☁️ Nx Cloud last updated this comment at |
@forgerock/davinci-client
@forgerock/device-client
@forgerock/journey-client
@forgerock/oidc-client
@forgerock/protect
@forgerock/sdk-types
@forgerock/sdk-utilities
@forgerock/iframe-manager
@forgerock/sdk-logger
@forgerock/sdk-oidc
@forgerock/sdk-request-middleware
@forgerock/storage
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (18.83%) is below the target coverage (40.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #528 +/- ##
==========================================
+ Coverage 18.79% 18.83% +0.03%
==========================================
Files 140 142 +2
Lines 27640 27732 +92
Branches 980 993 +13
==========================================
+ Hits 5195 5223 +28
- Misses 22445 22509 +64
🚀 New features to boost your workflow:
|
|
Deployed 8400da4 to https://ForgeRock.github.io/ping-javascript-sdk/pr-528/8400da49979432c260108d4c1bf7cf0b9de5fa35 branch gh-pages in ForgeRock/ping-javascript-sdk |
📦 Bundle Size Analysis📦 Bundle Size Analysis🚨 Significant Changes🔻 @forgerock/journey-client - 0.0 KB (-82.5 KB, -100.0%) 📊 Minor Changes📉 @forgerock/journey-client - 82.5 KB (-0.0 KB) ➖ No Changes➖ @forgerock/device-client - 9.3 KB 13 packages analyzed • Baseline from latest Legend🆕 New package ℹ️ How bundle sizes are calculated
🔄 Updated automatically on each push to this PR |
2d4fecc to
ad81c13
Compare
JIRA Ticket
Description
Fixes double logging when using custom logger. Custom logger should override default console logs.
Summary by CodeRabbit
Refactor
Bug Fixes