casatelemetry/private/casatelemetry.py

Modified
85 85 tLogSizeLimit = tLogSizeLimit - inactiveTLogSize
86 86 #print("tLogSizeLimit " + str(tLogSizeLimit))
87 87 if (tLogSizeLimit <= 0):
88 88 print ("Telemetry log size limit exceeded. Disabling telemetry.", file=sys.stderr)
89 89 self.telemetry_enabled = False
90 90 else :
91 91 tLogMonitor = TelemetryLogMonitor.TelemetryLogMonitor(ct_instance=self)
92 92 tLogMonitor.start(self.logfile,tLogSizeLimit, tLogSizeInterval)
93 93 if self.telemetry_enabled:
94 94 print ("Telemetry initialized. Telemetry will send anonymized usage statistics to NRAO.", file=sys.stderr)
95 - print ('You can disable telemetry by adding the following line to the config.py file in your rcdir (e.g. ~/.casa/config.py):', file=sys.stderr)
95 + print ('You can disable telemetry by adding the following line to your config.py file (e.g. ~/.casa/config.py):', file=sys.stderr)
96 96 print ('telemetry_enabled = False', file=sys.stderr)
97 97
98 98 def setNewTelemetryFile(self):
99 99 try:
100 100 self.logger.removehandler(self.loghandler)
101 101 except:
102 102 pass
103 103 self.logfile = self.logdir + '/casastats-' + self.casaver +'-' + self.hostid + "-" + time.strftime("%Y%m%d-%H%M%S", time.gmtime()) + self.variantSuffix + '.log'
104 104 self.init_log_file()
105 105

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut