MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / in_diagnostic_mode

Function in_diagnostic_mode

mssqlcli/telemetry_upload.py:26–31  ·  view source on GitHub ↗

When the telemetry runs in the diagnostic mode, exception are not suppressed and telemetry traces are dumped to the stdout.

()

Source from the content-addressed store, hash-verified

24
25
26def in_diagnostic_mode():
27 """
28 When the telemetry runs in the diagnostic mode, exception are not suppressed and telemetry
29 traces are dumped to the stdout.
30 """
31 return os.environ.get(DIAGNOSTICS_TELEMETRY_ENV_NAME, False) == 'True'
32
33
34class VortexSynchronousSender(SynchronousSender):

Callers 2

sendMethod · 0.85
uploadFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected