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

fix: use browserLogger for errors in the browser #280

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

codeincontext
Copy link
Collaborator

I was looking at a frontend error in Sentry, and I spotted that this was logged:

Invalid use of @oakai/logger, use logger/browser, logMessage=Oak consent client error

That makes sense as we globally replaced console.error commands with the central structuredLogger

This PR makes aiLogger().error choose between a server and browser logger as required

Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
oak-ai-lesson-assistant ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 3:42pm

Copy link

Copy link

Playwright test results

passed  13 passed
skipped  1 skipped

Details

report  Open report ↗︎
stats  14 tests across 13 suites
duration  1 minute, 41 seconds
commit  be49db8

Skipped tests

No persona › tests/auth.test.ts › authenticate through Clerk UI

@codeincontext codeincontext merged commit 647c904 into main Oct 29, 2024
14 checks passed
@codeincontext codeincontext deleted the fix/browser-error-logger branch October 29, 2024 09:06
@oak-machine-user
Copy link
Collaborator

🎉 This PR is included in version 1.13.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants