izihawa-loglib 1.1.5__py3-none-any.whl → 1.1.6__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.
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: izihawa_loglib
3
- Version: 1.1.5
3
+ Version: 1.1.6
4
4
  Summary: Izihawa log utilities
5
5
  Author: Pasha Podolsky
6
6
  Author-email: ppodolsky@me.com
@@ -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.6.dist-info/METADATA,sha256=OC3Zwcj4Kcx9ZMhO1iSnQb2roZhr24qIgYBwP1iD9DU,656
6
+ izihawa_loglib-1.1.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
7
+ izihawa_loglib-1.1.6.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,,