Skip to content

Commit

Permalink
Changes the logging level for unexpected header keys to trace, as hav…
Browse files Browse the repository at this point in the history
…ing it as warning fills up logs.
  • Loading branch information
thewhaleking committed Feb 12, 2025
1 parent d244791 commit af9b9e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bittensor/core/synapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,8 @@ def parse_headers_to_inputs(cls, headers: dict) -> dict:
logging.error(f"Error while parsing 'input_obj' header {key}: {e}")
continue
else:
logging.warning(f"Unexpected header key encountered: {key}")
# setting this to warning fills up logs unnecessarily
logging.trace(f"Unexpected header key encountered: {key}")

# Assign the remaining known headers directly
inputs_dict["timeout"] = headers.get("timeout", None)
Expand Down

0 comments on commit af9b9e3

Please sign in to comment.