apppy-logger 0.1.0__py3-none-any.whl → 0.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.
Potentially problematic release.
This version of apppy-logger might be problematic. Click here for more details.
apppy/logger/parser.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import logging
|
|
2
|
-
from typing import Any, Optional
|
|
2
|
+
from typing import Any, Optional, cast
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class LogRecordParser:
|
|
@@ -38,7 +38,7 @@ class LogRecordParser:
|
|
|
38
38
|
Parse state data from the given log record that is added via LoggingStorage.
|
|
39
39
|
"""
|
|
40
40
|
if hasattr(log_record, "state") and isinstance(log_record.state, dict):
|
|
41
|
-
return log_record.state
|
|
41
|
+
return cast(dict[str, Any], log_record.state)
|
|
42
42
|
|
|
43
43
|
return {}
|
|
44
44
|
|
|
@@ -2,8 +2,8 @@ apppy/logger/__init__.py,sha256=OLru2wZ06QHVyB82hjIcuncN13EfA69XV2hNTJAv1b8,2102
|
|
|
2
2
|
apppy/logger/filter.py,sha256=2FTt_ADwc2phniY541_xKX1zR6K8BY3kCFRdJ5FEoBI,509
|
|
3
3
|
apppy/logger/format.py,sha256=ocrFkYKvSgAsY4_RuiendI9c-4gLD_AMh4K49elPMzk,1759
|
|
4
4
|
apppy/logger/format_unit_test.py,sha256=51Jhr8mzaFxvEC0tCdkUP5V-noefDI4fR0jH8FQSnBA,4411
|
|
5
|
-
apppy/logger/parser.py,sha256=
|
|
5
|
+
apppy/logger/parser.py,sha256=QmGm7eaH3lORot8PbAB5Bee_tyHvgC8i80JL_3P4VRc,1898
|
|
6
6
|
apppy/logger/storage.py,sha256=nHtM28Pu4MSXkofp6mch3XIWh7Y6ZYIAZLzE7f18kFc,2067
|
|
7
|
-
apppy_logger-0.
|
|
8
|
-
apppy_logger-0.
|
|
9
|
-
apppy_logger-0.
|
|
7
|
+
apppy_logger-0.3.0.dist-info/METADATA,sha256=sAX3eHv1gaAk0Ybz1UBjp7IwKlXgqy-yw1m0DwhpYCk,320
|
|
8
|
+
apppy_logger-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
9
|
+
apppy_logger-0.3.0.dist-info/RECORD,,
|
|
File without changes
|