acai-aws 2.2.9__py3-none-any.whl → 2.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- acai_aws/common/logger/common_logger.py +10 -7
- {acai_aws-2.2.9.dist-info → acai_aws-2.3.0.dist-info}/METADATA +1 -1
- {acai_aws-2.2.9.dist-info → acai_aws-2.3.0.dist-info}/RECORD +6 -6
- {acai_aws-2.2.9.dist-info → acai_aws-2.3.0.dist-info}/WHEEL +0 -0
- {acai_aws-2.2.9.dist-info → acai_aws-2.3.0.dist-info}/licenses/LICENSE +0 -0
- {acai_aws-2.2.9.dist-info → acai_aws-2.3.0.dist-info}/top_level.txt +0 -0
|
@@ -3,7 +3,6 @@ import os
|
|
|
3
3
|
import traceback
|
|
4
4
|
|
|
5
5
|
import jsonpickle
|
|
6
|
-
from icecream import ic
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
class CommonLogger:
|
|
@@ -45,13 +44,17 @@ class CommonLogger:
|
|
|
45
44
|
print(self.__json.encode({
|
|
46
45
|
'level': kwargs['level'],
|
|
47
46
|
'time': datetime.datetime.now(datetime.timezone.utc).isoformat(),
|
|
48
|
-
'
|
|
47
|
+
'trace': [trace.strip() for trace in self.__get_traceback().split('\n') if trace],
|
|
49
48
|
'log': kwargs['log']
|
|
50
49
|
}, indent=4))
|
|
51
50
|
|
|
52
51
|
def __log_inline(self, **kwargs):
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
timestamp = datetime.datetime.now(datetime.timezone.utc).isoformat()
|
|
53
|
+
trace = self.__get_traceback().strip().replace('\n', ' | ')
|
|
54
|
+
log_value = kwargs['log']
|
|
55
|
+
if not isinstance(log_value, str):
|
|
56
|
+
log_value = str(log_value)
|
|
57
|
+
inline_message = f"{kwargs['level']}|time={timestamp} log={log_value}"
|
|
58
|
+
if trace:
|
|
59
|
+
inline_message = f"{inline_message} trace={trace}"
|
|
60
|
+
print(inline_message)
|
|
@@ -26,7 +26,7 @@ acai_aws/common/json_helper.py,sha256=HoCaF0fO_EXcVbwanZ9Cg66x9oQUQyXbEdLfResFpq
|
|
|
26
26
|
acai_aws/common/schema.py,sha256=mbtD922dsNzZX2uZjJKXFVj9IShpgBRofTVmdNyLGyE,3549
|
|
27
27
|
acai_aws/common/validator.py,sha256=uYFMPGM5dvsiKxuwFGxetwqGcRNm03BZ3YJ6lNedwck,6575
|
|
28
28
|
acai_aws/common/logger/__init__.py,sha256=2ItzGhXLdTwt9tKAOa5dzgQlLouJKQbUhV4qjxBLl1g,241
|
|
29
|
-
acai_aws/common/logger/common_logger.py,sha256=
|
|
29
|
+
acai_aws/common/logger/common_logger.py,sha256=sGtTjDSqqXhVauGR06SuUWdYfxOrgzQcEswdrC5WIu0,2263
|
|
30
30
|
acai_aws/common/logger/decorator.py,sha256=Nf7S--7mWKVkKiRB2fVNM9B4NBFpJeTGv0FYxK0DEvU,749
|
|
31
31
|
acai_aws/common/records/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
32
|
acai_aws/common/records/event.py,sha256=F6fqxSRWfAbEH8n_Vw9ZQICcNd__rWRGpMv1T0deQ8o,621
|
|
@@ -72,7 +72,7 @@ acai_aws/sqs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
72
72
|
acai_aws/sqs/event.py,sha256=u5QYrb-XLy2mhzi3v55je6N6vASS3ywzjIBDjm_n32Q,264
|
|
73
73
|
acai_aws/sqs/record.py,sha256=b-9gidW2UvuSZU00sgZV90DuUj7r12zTXYbQLNBSYjk,1909
|
|
74
74
|
acai_aws/sqs/requirements.py,sha256=4QR0LIrDqF1CPSAroscX3EAys-dbqWMFmOhqyILcViw,116
|
|
75
|
-
acai_aws-2.
|
|
75
|
+
acai_aws-2.3.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
76
76
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
77
77
|
tests/acai_aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
78
78
|
tests/acai_aws/apigateway/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -154,7 +154,7 @@ tests/acai_aws/sqs/test_event.py,sha256=d8JBttuLND_qBVdLAoqtp-_qJ5NXxD6Ai2IFmUqK
|
|
|
154
154
|
tests/acai_aws/sqs/test_record.py,sha256=RkWpc24A-f4bw1VyMM5mEp97QCk4i-Weu6CFP0-VlbU,1602
|
|
155
155
|
tests/acai_aws/sqs/test_requirements.py,sha256=wcV99aXQIL8t6gIeUO0EgX9c_hA0IV3rg2Ar1g1SYjg,904
|
|
156
156
|
tests/mocks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
157
|
-
acai_aws-2.
|
|
158
|
-
acai_aws-2.
|
|
159
|
-
acai_aws-2.
|
|
160
|
-
acai_aws-2.
|
|
157
|
+
acai_aws-2.3.0.dist-info/METADATA,sha256=R1dle_WYWbBAOHTz8LcghQL7VgCj5MkIkKFdNtRtlG8,15175
|
|
158
|
+
acai_aws-2.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
159
|
+
acai_aws-2.3.0.dist-info/top_level.txt,sha256=A6vdhfU7MqNqO9rGdH1Z2EEqpnbIIyb4PsHJbRktbbI,15
|
|
160
|
+
acai_aws-2.3.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|