File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 77# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
88# SPDX-License-Identifier: Apache-2.0.
99import _awscrt
10- import platform
1110from concurrent .futures import Future
1211from enum import IntEnum
1312from inspect import signature
Original file line number Diff line number Diff line change 77# SPDX-License-Identifier: Apache-2.0.
88from typing import Any , Callable , Union
99import _awscrt
10- import platform
1110from concurrent .futures import Future
1211from enum import IntEnum
1312from awscrt import NativeResource , exceptions
@@ -36,13 +35,15 @@ def _get_awsiot_metrics_str(current_username=""):
3635 import importlib .metadata
3736 try :
3837 version = importlib .metadata .version ("awscrt" )
39- _metrics_str = "SDK=CRTPython&Version={}&Platform={}" .format (version , _awscrt .get_platform_build_os_string ())
38+ _metrics_str = "SDK=CRTPython&Version={}&Platform={}" .format (
39+ version , _awscrt .get_platform_build_os_string ())
4040 except importlib .metadata .PackageNotFoundError :
4141 _metrics_str = "SDK=CRTPython&Version=dev&Platform={}" .format (_awscrt .get_platform_build_os_string ())
4242 except BaseException :
4343 _metrics_str = ""
4444
4545 if not _metrics_str == "" :
46+ print ("Appending AWS IoT metrics to username: {}" .format (_metrics_str ))
4647 if username_has_query :
4748 return "&" + _metrics_str
4849 else :
You can’t perform that action at this time.
0 commit comments