izihawa-loglib 1.1.16__tar.gz → 1.1.18__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: izihawa_loglib
3
- Version: 1.1.16
3
+ Version: 1.1.18
4
4
  Summary: Izihawa log utilities
5
5
  Author: Pasha Podolsky
6
6
  Author-email: ppodolsky@me.com
@@ -73,7 +73,6 @@ class DefaultFormatter(BaseFormatter):
73
73
  formatted_datetime = datetime.datetime.fromtimestamp(timestamp).strftime(
74
74
  DATETIME_FORMAT
75
75
  )
76
-
77
76
  log_record.update(
78
77
  unixtime=int(timestamp),
79
78
  timestamp=int(timestamp * 1_000_000),
@@ -84,7 +83,7 @@ class DefaultFormatter(BaseFormatter):
84
83
 
85
84
  def format(self, record):
86
85
  log_record = self._prepare(record)
87
- return json.dumps(log_record).decode()
86
+ return json.dumps(log_record, default=str).decode()
88
87
 
89
88
 
90
89
  class TracebackFormatter(DefaultFormatter):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "izihawa_loglib"
3
- version = "1.1.16"
3
+ version = "1.1.18"
4
4
  description = "Izihawa log utilities"
5
5
  authors = ["Pasha Podolsky <ppodolsky@me.com>"]
6
6
  readme = "README.md"