isolate 0.14.2__py3-none-any.whl → 0.14.3__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.
Potentially problematic release.
This version of isolate might be problematic. Click here for more details.
- isolate/_isolate_version.py +2 -2
- isolate/logger.py +4 -0
- {isolate-0.14.2.dist-info → isolate-0.14.3.dist-info}/METADATA +1 -1
- {isolate-0.14.2.dist-info → isolate-0.14.3.dist-info}/RECORD +8 -8
- {isolate-0.14.2.dist-info → isolate-0.14.3.dist-info}/WHEEL +1 -1
- {isolate-0.14.2.dist-info → isolate-0.14.3.dist-info}/LICENSE +0 -0
- {isolate-0.14.2.dist-info → isolate-0.14.3.dist-info}/entry_points.txt +0 -0
- {isolate-0.14.2.dist-info → isolate-0.14.3.dist-info}/top_level.txt +0 -0
isolate/_isolate_version.py
CHANGED
isolate/logger.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import os
|
|
3
|
+
from datetime import datetime, timezone
|
|
3
4
|
from typing import Dict
|
|
4
5
|
|
|
5
6
|
from isolate.logs import LogLevel, LogSource
|
|
@@ -16,6 +17,9 @@ class IsolateLogger:
|
|
|
16
17
|
|
|
17
18
|
def log(self, level: LogLevel, message: str, source: LogSource) -> None:
|
|
18
19
|
record = {
|
|
20
|
+
# Set the timestamp from source so we can be sure no buffering or
|
|
21
|
+
# latency is affecting the timestamp.
|
|
22
|
+
"logged_at": datetime.now(tz=timezone.utc).isoformat(),
|
|
19
23
|
"isolate_source": source.name,
|
|
20
24
|
"level": level.name,
|
|
21
25
|
"message": message,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
isolate/__init__.py,sha256=uXOKnONs7sXgARNgElwr4_A1sKoA6ACHVEvs3IDiX1M,127
|
|
2
|
-
isolate/_isolate_version.py,sha256=
|
|
2
|
+
isolate/_isolate_version.py,sha256=3mnQHEW9gizHocB0ULApMUw7E4CZd4qai5GsjMH_Vo4,413
|
|
3
3
|
isolate/_version.py,sha256=05pXvy-yr5t3I1m9JMn42Ilzpg7fa8IB2J8a3G7t1cU,274
|
|
4
|
-
isolate/logger.py,sha256=
|
|
4
|
+
isolate/logger.py,sha256=Z4a03kjFg54H3RDVVp4nQeut0xlxq0PIbbEczCT9ImU,1758
|
|
5
5
|
isolate/logs.py,sha256=R_AHUVYD18z_PhtK_mDWi9Gch79CxmwHY09hUDShtwg,2079
|
|
6
6
|
isolate/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
isolate/registry.py,sha256=hpzv4HI7iihG5I7i5r8Pb257ibhEKY18xQcG-w1-BgI,1590
|
|
@@ -53,9 +53,9 @@ isolate/server/health/health.proto,sha256=wE2_QD0OQAblKkEBG7sALLXEOj1mOLKG-FbC4t
|
|
|
53
53
|
isolate/server/health/health_pb2.py,sha256=onOdP3M4Tpqhqs2PlGcyfoKe2VVKUEDx5ALeRcObb9A,1899
|
|
54
54
|
isolate/server/health/health_pb2.pyi,sha256=AK-DPCpJzoYhU6DydD856c0Ywx84x6k-Cs4m6HpNv5A,2459
|
|
55
55
|
isolate/server/health/health_pb2_grpc.py,sha256=XgsULrnRBmYIqvKr8eI7bqs6NIea5A0kkqdOOc2JHBY,5303
|
|
56
|
-
isolate-0.14.
|
|
57
|
-
isolate-0.14.
|
|
58
|
-
isolate-0.14.
|
|
59
|
-
isolate-0.14.
|
|
60
|
-
isolate-0.14.
|
|
61
|
-
isolate-0.14.
|
|
56
|
+
isolate-0.14.3.dist-info/LICENSE,sha256=427vuyirL5scgBLqA9UWcdnxKrtSGc0u_JfUupk6lAA,11359
|
|
57
|
+
isolate-0.14.3.dist-info/METADATA,sha256=LxlsStQM06vUMmDzW2XsnmdrVvm1mgPgBslNnC22W4Q,3191
|
|
58
|
+
isolate-0.14.3.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
59
|
+
isolate-0.14.3.dist-info/entry_points.txt,sha256=s3prh2EERaVCbL8R45tfY5WFPZ1TsYOsz305YR7s-Pc,360
|
|
60
|
+
isolate-0.14.3.dist-info/top_level.txt,sha256=W9QJBHcq5WXRkbOXf25bvftzFsOZZN4n1DAatdroZrs,8
|
|
61
|
+
isolate-0.14.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|