Commits

Ville Suoranta authored 47a59d71210 Merge
Pull request #8: reword notice to omit use of 'rcdir'

Merge in CASA/casatelemetry from CAS-13116 to master * commit '94dc98cdb5d542b792326ff398bf97f98021922c': reword notice to omit use of 'rcdir'

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