izihawa-loglib 1.1.5__py3-none-any.whl → 1.1.7__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.
izihawa_loglib/formatters.py
CHANGED
@@ -90,9 +90,11 @@ class DefaultFormatter(BaseFormatter):
|
|
90
90
|
class TracebackFormatter(DefaultFormatter):
|
91
91
|
def format(self, record):
|
92
92
|
log_record = self._prepare(record)
|
93
|
-
value = pprint.pformat(log_record, indent=2)
|
94
93
|
if traceback.sys.exc_info()[0] is not None:
|
94
|
+
value = pprint.pformat(log_record, indent=2)
|
95
95
|
value += "\n" + traceback.format_exc()
|
96
|
+
else:
|
97
|
+
value = json.dumps(log_record).decode()
|
96
98
|
return value
|
97
99
|
|
98
100
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: izihawa_loglib
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.7
|
4
4
|
Summary: Izihawa log utilities
|
5
5
|
Author: Pasha Podolsky
|
6
6
|
Author-email: ppodolsky@me.com
|
7
|
-
Requires-Python: >=3.8.1,<
|
7
|
+
Requires-Python: >=3.8.1,<4.0.0
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
9
9
|
Classifier: Programming Language :: Python :: 3.9
|
10
10
|
Classifier: Programming Language :: Python :: 3.10
|
@@ -0,0 +1,7 @@
|
|
1
|
+
izihawa_loglib/__init__.py,sha256=WByRneiSW-mxN_xFFSJjoBXiMmpCJaHR-yyrSRlqUiM,981
|
2
|
+
izihawa_loglib/formatters.py,sha256=0V4cP50z-TimN-WmExqo7SEt8qFapCoW3h6BmtC_lCw,2886
|
3
|
+
izihawa_loglib/handlers.py,sha256=UMBb7VSFvo4QUD0aueyzmh2ryq5tl8U4iKB9IIbax-0,1095
|
4
|
+
izihawa_loglib/request_context.py,sha256=HMFD149Wpv2rw23NpEIRie_Dts86S3_u_swnEYXY4Qs,1143
|
5
|
+
izihawa_loglib-1.1.7.dist-info/METADATA,sha256=0lO6y4pOzFa1DyglSQum7wXRKZ-fQTCn9lH1UN7Hmp0,657
|
6
|
+
izihawa_loglib-1.1.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
7
|
+
izihawa_loglib-1.1.7.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
izihawa_loglib/__init__.py,sha256=WByRneiSW-mxN_xFFSJjoBXiMmpCJaHR-yyrSRlqUiM,981
|
2
|
-
izihawa_loglib/formatters.py,sha256=ZQj0FMJs4qJcaFKz__VSsrUGXgMcXhQKSTAqemWYZG8,2816
|
3
|
-
izihawa_loglib/handlers.py,sha256=UMBb7VSFvo4QUD0aueyzmh2ryq5tl8U4iKB9IIbax-0,1095
|
4
|
-
izihawa_loglib/request_context.py,sha256=HMFD149Wpv2rw23NpEIRie_Dts86S3_u_swnEYXY4Qs,1143
|
5
|
-
izihawa_loglib-1.1.5.dist-info/METADATA,sha256=3g4xxU2ZaUb6M6RxYTWiiCkc4vPMfPyyAfOMTPuU7go,656
|
6
|
-
izihawa_loglib-1.1.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
7
|
-
izihawa_loglib-1.1.5.dist-info/RECORD,,
|
File without changes
|