Skip to content

Commit b3cc17b

Browse files
authored
Lets make this available with debug levels
making it consistent with other debug in the module
1 parent 7bf9f3c commit b3cc17b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_esp32spi/adafruit_esp32spi_wsgiserver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ def finish_response(self, result):
126126
self._client_sock.send(data.encode("utf-8"))
127127
gc.collect()
128128
finally:
129+
if self._debug > 2:
130+
print("closing")
129131
self._client_sock.close()
130132

131133
def client_available(self):

0 commit comments

Comments
 (0)