Skip to content

Commit 3af6375

Browse files
committed
Log context close
1 parent 04643aa commit 3af6375

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

playwright/_impl/_browser_context.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,9 @@ def _on_close(self) -> None:
593593

594594
async def close(self, reason: str = None) -> None:
595595
if self._closing_or_closed:
596+
print("Context already closed", self)
596597
return
598+
print("Closing context", self)
597599
self._close_reason = reason
598600
self._closing_or_closed = True
599601

0 commit comments

Comments
 (0)