Skip to content

Commit cadfed6

Browse files
committed
Remove debug prints
1 parent a689e3e commit cadfed6

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

client/client.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44

55
import asyncio
6-
import sys
76
from typing import Any, List, Tuple
87
from uuid import UUID
98
from fastapi import status
@@ -242,23 +241,15 @@ def summarize_failure(hub_results: List[Any]) -> Tuple[List[str], int]:
242241
- A list of cause strings (included in the details of the ETSI exception)
243242
- The status code to be used in the ETSI exception, the worst of the peer status codes.
244243
"""
245-
print("Summarizing failures from hub results:", file=sys.stderr) ### DEBUG
246244
status_code = None
247245
causes = []
248246
for hub_result in hub_results:
249247
if isinstance(hub_result, Exception):
250248
causes.append(str(hub_result))
251249
if isinstance(hub_result, exceptions.DSKEException):
252250
if status_code is None or hub_result.status_code > status_code:
253-
print(
254-
f"New worst status code: {hub_result.status_code} from hub result: {hub_result}",
255-
file=sys.stderr,
256-
) ### DEBUG
257251
status_code = hub_result.status_code
258252
if status_code is None:
259253
print
260254
status_code = status.HTTP_503_SERVICE_UNAVAILABLE
261-
print(
262-
f"Final summarized status code: {status_code}", file=sys.stderr
263-
) ### DEBUG
264255
return (causes, status_code)

0 commit comments

Comments
 (0)