Skip to content

Commit

Permalink
Merge pull request #337 from GateNLP/telemetry-logging
Browse files Browse the repository at this point in the history
add more logging when telemetry is switched off and send_telemetry is called
  • Loading branch information
twinkarma authored Apr 13, 2023
2 parents 63a30eb + d1545bd commit f8466e8
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 f8466e8

Please sign in to comment.