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

feat: add logging http api #156

Merged
merged 1 commit into from
Aug 5, 2024
Merged

feat: add logging http api #156

merged 1 commit into from
Aug 5, 2024

Conversation

aschmahmann
Copy link
Contributor

Adds an HTTP API for logging so it can be dynamically modified at runtime, also adds an API for listing all logging subsystems.

Copy link
Contributor

@gammazero gammazero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good for a simple API to set the log level for a single facility. Consider providing a way to set level for all facilities.

Here is an existing API that allows the user to specify multiple facilities and levels if that is interesting: https://github.com/ipni/storetheindex/blob/main/server/admin/config_handler.go#L18-L46

@aschmahmann
Copy link
Contributor Author

aschmahmann commented Aug 5, 2024

After some sync conversation:

  1. We're going to merge as-is for now and leverage for some debugging
  2. Can follow up with changes to the API later

Also, overriding requirements here due to the only test failure being in the new e2e tests that are sometimes failing in master as well.

@aschmahmann aschmahmann merged commit 2b45b4e into main Aug 5, 2024
12 of 13 checks passed
@aschmahmann aschmahmann deleted the feat/log-api branch August 5, 2024 16:06
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