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 for unexpected header keys in Synapse #2587

Open
wants to merge 3 commits into
base: staging
Choose a base branch
from

Conversation

crStiv
Copy link

@crStiv crStiv commented Jan 19, 2025

This commit adds proper logging for unexpected header keys in the Synapse.parse_headers_to_inputs method. Previously, these keys were silently ignored with a TODO comment. Now, when an unexpected header key is encountered, it will be logged as a warning message, which will help with debugging and monitoring of the system.

Changes made:

  • Replaced TODO comment with actual logging implementation
  • Added warning level logging for unexpected header keys
  • Improved system observability for header parsing issues

This change helps developers better understand what unexpected data is being received in the headers during runtime.

@roman-opentensor roman-opentensor requested a review from a team January 21, 2025 04:25
thewhaleking
thewhaleking previously approved these changes Jan 21, 2025
@thewhaleking thewhaleking changed the base branch from master to staging January 21, 2025 14:16
@thewhaleking thewhaleking dismissed stale reviews from roman-opentensor and themself January 21, 2025 14:16

The base branch was changed.

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.

3 participants