Skip to content

Commit

Permalink
add more logging when telemetry is switched off and send_telemetry is…
Browse files Browse the repository at this point in the history
… called
  • Loading branch information
davidwilby committed Apr 13, 2023
1 parent f61aedf commit d1545bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,8 @@ def send_telemetry(self, status: str):
if settings.TELEMETRY_ON:
ts = TelemetrySender(status=status, data=self.get_telemetry_stats())
ts.send()
else:
log.info(f"Telemetry is switched off. Not sending telemetry data for project {self.pk}.")

def get_annotators_dict(self):
return {
Expand Down

0 comments on commit d1545bd

Please sign in to comment.