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

Implement error logging channel + basic tests #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mwestphall
Copy link
Collaborator

Tests are currently broken, I can rebase them out if desired

@mwestphall mwestphall requested a review from Saartank January 17, 2025 15:50
@Saartank
Copy link
Collaborator

Many of the tests are failing. I see that you have mentioned many TODOs. Merging these tests without getting them to a working condition first seems like a terrible practice. We can either split the working parts and the non-working parts and merge only the former, or I can make the configuration management changes you require, and you can then complete your TODOs.

@Saartank
Copy link
Collaborator

Also, it would be a bad idea to force the application to handle logging errors. Another idea I was considering was letting the application provide a callback function that would be invoked when an error arises. This approach would reduce the rigidity enforced by the logging library and provide more flexibility to the application. If the application wants, it could transmit the errors to a channel, or if needed, perform an immediate shutdown. What are your thoughts on this?

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.

2 participants