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

Use pino for logs #1086

Merged
merged 3 commits into from
Apr 30, 2024
Merged

Use pino for logs #1086

merged 3 commits into from
Apr 30, 2024

Conversation

nsarrazin
Copy link
Collaborator

@nsarrazin nsarrazin commented Apr 29, 2024

This PR adds pino for logs, which will give us JSON logging in prod and pretty logs in dev.

I also used this opportunity to add a handleError hook.

We now log extra info about the error's source and we also surface a unique errorId to the user which can be used for finding the error in the logs.

image

@nsarrazin nsarrazin added enhancement New feature or request back This issue is related to the Svelte backend or the DB labels Apr 29, 2024
@rtrompier rtrompier mentioned this pull request Apr 30, 2024
6 tasks
@nsarrazin nsarrazin merged commit ddbe7d2 into main Apr 30, 2024
3 checks passed
@nsarrazin nsarrazin deleted the feat/add_pino_logs branch April 30, 2024 07:45
@wdhorton wdhorton mentioned this pull request May 30, 2024
ice91 pushed a commit to ice91/chat-ui that referenced this pull request Oct 30, 2024
* Use pino for logs

* Use logger for info

* Add errorId to the logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back This issue is related to the Svelte backend or the DB enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants