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

Don't log errors from telemetry #2084

Merged
merged 2 commits into from
Dec 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pip/qsharp/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def _post_telemetry() -> bool:
return True

except Exception:
logger.exception(
logger.debug(
"Failed to post telemetry. Pending metrics will be retried at the next interval."
)
return False
Expand Down Expand Up @@ -271,7 +271,7 @@ def on_metric(msg: Metric):
if msg == "exit":
logger.debug("Exiting telemetry thread")
if not _post_telemetry():
logger.error("Failed to post telemetry on exit")
logger.debug("Failed to post telemetry on exit")
return
else:
on_metric(msg)
Expand Down
Loading