Skip to content

Commit 5a4d92f

Browse files
committed
add a bit more INFO strings so you have some output as to what's going on
1 parent 3ef69d2 commit 5a4d92f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

evernetpy/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ def listing_query(self, query):
3434
conn.putheader('Content-Length', '%d' % len(data))
3535
conn.endheaders()
3636
conn.send(data)
37+
logger.info('Sent request...')
3738
logger.debug('>>> %s' % data)
3839

3940
with tempfile.TemporaryFile() as response_file:
4041
response = conn.getresponse()
4142
tmp = response.read(1000)
43+
logger.info('Receiving data...')
4244
while tmp:
4345
response_file.write(tmp)
4446
tmp = response.read(1000)
@@ -57,6 +59,7 @@ def listing_query(self, query):
5759
except ExpatError:
5860
logging.error("Error parsing XML response from Evernet. This usually happens when the server returns an error message. You can see the full response if you set the logging to DEBUG level")
5961
raise
62+
logger.info('All data received, starting parsing')
6063
self.data.seek(0)
6164
return self.data
6265

0 commit comments

Comments
 (0)