Skip to content

Commit

Permalink
print debug message with headers generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriechi committed Aug 5, 2020
1 parent 246e63d commit da26ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hpack/hpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def encode(self, headers, huffman=True):
# are already in the header table we can represent them using the
# indexed representation: the same is true if they are in the static
# table. Otherwise, a literal representation will be used.
log.debug("HPACK encoding %s", headers)
log.debug("HPACK encoding %s", list(headers))
header_block = []

# Turn the headers into a list of tuples if possible. This is the
Expand Down

1 comment on commit da26ef4

@dimaqq
Copy link

@dimaqq dimaqq commented on da26ef4 Aug 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except now, if it's a generator, it's consumed in logging and the data never reaches for header in headers...

Please sign in to comment.