Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions server/services/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def get_service_url(endpoint_path: str) -> str:
if endpoint_path not in endpoints.endpoint_paths:
raise InvalidEndpointException('endpoint %s was not configured' %
endpoint_path)
print(f"DEBUG: get_service_url({endpoint_path}) -> {endpoints.get_service_url(endpoint_path)}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using print statements for debugging is generally not recommended for application logging, even for debug purposes, as it lacks the flexibility and control offered by Python's logging module. The logging module allows for different log levels (DEBUG, INFO, WARNING, ERROR), configurable output destinations, and structured formatting, which are crucial for effective monitoring and debugging in a production environment. If this logging is temporary, please ensure it is removed before merging. If it's intended to be persistent, consider replacing print with logging.debug after importing and configuring the logging module.

return endpoints.get_service_url(endpoint_path)


Expand Down
Loading