Skip to content

Commit

Permalink
v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Jan 27, 2022
1 parent 06f96c0 commit 92d874e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions Changes.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
Changes for v3.0.0 (2022-01-26)
===============================

- Use repr to represent all JSON fields of unknown types by default.
Previously, when passing a mapping (dictionary) as a log message,
watchtower would replace datetime objects with their “.isoformat()”
string representation, and would replace all other
non-JSON-serializable objects with ``null``. The new behavior is to
use the output of repr() to represent these non-JSON-serializable
objects. This change may cause your logger to log more data than you
intended, which is why it triggers a major version bump. If you use
watchtower to log sensitive information or objects with large repr
strings, you are advised to examine your log messages to see if any
newly visible data should be sanitized. If you need to customize this
behavior, you can pass a custom JSON default serializer using the
``json_serialize_default`` keyword argument.

Changes for v2.1.1 (2022-01-07)
===============================

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="watchtower",
version="2.1.1",
version="3.0.0",
url="https://github.com/kislyuk/watchtower",
license="Apache Software License",
author="Andrey Kislyuk",
Expand Down

0 comments on commit 92d874e

Please sign in to comment.