Skip to content

Commit 81ec536

Browse files
authored
Merge pull request #1032 from vladmunteanu/logging-stream-id-none
Fixed logging TypeError when stream_id is None
2 parents cc19482 + b53de74 commit 81ec536

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

h2/connection.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -909,16 +909,21 @@ def increment_flow_control_window(self, increment, stream_id=None):
909909
frames = stream.increase_flow_control_window(
910910
increment
911911
)
912+
913+
self.config.logger.debug(
914+
"Increase stream ID %d flow control window by %d",
915+
stream_id, increment
916+
)
912917
else:
913918
self._inbound_flow_control_window_manager.window_opened(increment)
914919
f = WindowUpdateFrame(0)
915920
f.window_increment = increment
916921
frames = [f]
917922

918-
self.config.logger.debug(
919-
"Increase stream ID %d flow control window by %d",
920-
stream_id, increment
921-
)
923+
self.config.logger.debug(
924+
"Increase connection flow control window by %d", increment
925+
)
926+
922927
self._prepare_for_sending(frames)
923928

924929
def push_stream(self, stream_id, promised_stream_id, request_headers):

0 commit comments

Comments
 (0)