Commits

Ville Suoranta authored 19344c73a99 Merge
Merge pull request #104 in CASA/casa6 from CAS-12952 to master

* commit '56570449bbb316e13180bd81ac56d27521b83b44': Fix variant selection Add a separate variant for pipeline Add variant Add telemetry options Fix telemetry log size monitoring Make logging consistent with 5-series Remove duplicate telemetry flag Add task start time to the telemetry message Add version and platform to start and stop Casa messages Read telemetry toggle from casatasks config instead of .casarc Add telemetry config options to setup.py Add atexit call for telemetry Add CrashReporter init Add telemetry import to casatasks
No tags

casatasks/src/scripts/config.py

Modified
1 1 ###
2 2 ### This is the casatasks configuration file. It loads user settings
3 3 ### from userconfig.py. This file is available for use within casatasks
4 4 ### as well as to users of the casatasks module.
5 5 ###
6 6 import os as _os
7 7 import time as _time
8 8 from .private import userconfig as _uc
9 9 logfile = _os.path.realpath(_uc.logfile) if 'logfile' in dir(_uc) else _os.path.join(_os.getcwd( ),'casa-'+_time.strftime("%Y%m%d-%H%M%S", _time.gmtime())+'.log')
10 +
11 +# Telemetry and CrashReporter
12 +telemetry_enabled = _uc.telemetry_enabled if 'telemetry_enabled' in dir(_uc) else True
13 +crashreporter_enabled = _uc.crashreporter_enabled if 'crashreporter_enabled' in dir(_uc) else True
14 +telemetry_log_directory = _uc.telemetry_log_directory if 'telemetry_log_directory' in dir(_uc) else None
15 +telemetry_log_limit = _uc.telemetry_log_limit if 'telemetry_log_limit' in dir(_uc) else None
16 +telemetry_log_size_interval = _uc.telemetry_log_size_interval if 'telemetry_log_size_interval' in dir(_uc) else None
17 +telemetry_submit_interval = _uc.telemetry_submit_interval if 'telemetry_submit_interval' in dir(_uc) else None

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

Add shortcut