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

Add standardized debug logging #272

Open
jackwotherspoon opened this issue Mar 12, 2024 · 1 comment
Open

Add standardized debug logging #272

jackwotherspoon opened this issue Mar 12, 2024 · 1 comment
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: cleanup An internal cleanup or hygiene concern.

Comments

@jackwotherspoon
Copy link
Collaborator

Add support for optional debug logging. Presently, we want to log the following:

Logging for refresh operations

  • When a refresh operation starts
  • Before the rate limiter is acquired
  • After the rate limiter is acquired
  • When a refresh operation finishes
  • When a refresh operation errors
  • When a refresh operation is canceled
  • The ephemeral certificate’s expiration time
  • The next scheduled refresh

Logging for connection attempts

  • The current certificate’s expiration
  • The result of the invalid certificate check (i.e., is “now” after the expiration)
  • The result of connecting to the TCP socket including the IP address / PSC DNS name
  • The result of the TLS handshake

Logging for connection cache

  • Adding connection info to the cache
  • Removing connection info from the cache
@jackwotherspoon jackwotherspoon added the type: cleanup An internal cleanup or hygiene concern. label Mar 12, 2024
@jackwotherspoon jackwotherspoon self-assigned this Mar 12, 2024
@jackwotherspoon jackwotherspoon changed the title Add proper debug logging Add standardized debug logging Mar 12, 2024
@jackwotherspoon jackwotherspoon added the priority: p2 Moderately-important priority. Fix may not be included in next release. label Mar 12, 2024
@jackwotherspoon
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

No branches or pull requests

1 participant