Source
5
5
from telemetry import telemetry
6
6
import fnmatch
7
7
import os
8
8
from casac import casac
9
9
import __casac__
10
10
import atexit
11
11
import datetime
12
12
13
13
def logShutdown():
14
14
if (casa['state']['telemetry-enabled'] == True):
15
-
casalog.poststat("Stopping CASA at: " + str(datetime.datetime.now()) + " Version " + casa['build']['version'] + " Platform: " + platform.platform() + " Start time: " + casa['state']['telemetry-starttime'])
15
+
casalog.origin("CASAStop")
16
+
casalog.poststat("Stopping CASA at: " + casa['state']['telemetry-starttime'] + " Version " + casa['build']['version'] + " Platform: " + platform.platform() + " Start time: " + casa['state']['telemetry-starttime'])
16
17
17
18
casa['state']['telemetry-enabled'] = ${TELEMETRY_DEFAULT}
18
19
19
20
casa_util = __casac__.utils.utils()
20
21
21
22
rcTelemetryFlag = str.upper(casa_util.getrc("EnableTelemetry"))
22
23
23
24
# Use the value from casarc file if it is set, otherwise leave it as is
24
25
if (rcTelemetryFlag):
25
26
if (rcTelemetryFlag == 'TRUE'):