Skip to content

Commit 361c536

Browse files
committed
Log Plausible response status code
1 parent c769145 commit 361c536

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

visitors.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import csv
22
import io
3+
import logging
34
import urllib
45
import zipfile
56

@@ -13,6 +14,7 @@ def get_number_of_visitors(language: str, requests: Session) -> int:
1314
r = requests.get(
1415
f'https://plausible.io/docs.python.org/export?{params}', timeout=20
1516
)
17+
logging.info(f'Plausible export responded with {r.status_code=}')
1618
with (
1719
zipfile.ZipFile(io.BytesIO(r.content), 'r') as z,
1820
z.open('visitors.csv') as csv_file,

0 commit comments

Comments
 (0)