Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ in development
Fixed
~~~~~

* Fixed logging middleware to output a ``content_length`` of ``0`` instead of ``Infinity``
when the type of data being returned is not supported. Previously, when the value was
set to ``Infinity`` this would result in invalid JSON being output into structured
logs. (bug fix) #4722

Contributed by Nick Maludy (@nmaludy Encore Technologies)
* Fix the workflow execution cancelation to proceed even if the workflow execution is not found or
completed. (bug fix) #4735


3.1.0 - June 27, 2019
---------------------

Expand Down
2 changes: 1 addition & 1 deletion st2common/st2common/middleware/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def custom_start_response(status, headers, exc_info=None):
if isinstance(retval, (types.GeneratorType, itertools.chain)):
# Note: We don't log the result when return value is a generator, because this would
# result in calling str() on the generator and as such, exhausting it
content_length = [float('inf')]
content_length = [0]
log_result = False

# Log the response
Expand Down