Skip to content

Commit 8e0d2c5

Browse files
committed
Only debug log the HTML of failed API requests
1 parent dbf89f3 commit 8e0d2c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

submit/submit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def do_api_request(name: str):
202202
raise RuntimeError(e)
203203

204204
if response.status_code >= 300:
205-
print(response.text)
205+
logging.debug(response.text)
206206
if response.status_code == 401:
207207
raise RuntimeError('Authentication failed, please check your DOMjudge credentials in ~/.netrc.')
208208
else:

0 commit comments

Comments
 (0)