Skip to content

Commit

Permalink
Remove debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
kdouda committed Jan 19, 2025
1 parent b3a5421 commit eac5100
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/pyrdfrules/engine/local_http_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,15 @@ def __launch_process(self) -> None:

self.__url = get_server_url()

print(self.__url)
print(self.__port)

if self.__port is not None:
# stupid hack
# this can be solved by waiting for the server and removing the one global variable
current_port = re.search(r':(\d+)', self.__url).group(1)
print(current_port)
self.__url = self.__url.replace(current_port, str(self.__port))
print(self.__url)


except FailedToStartException as e:
exit(1)
log().error(f"Failed to start RDFRules, check if the port {self.__port} is already in use")
raise e


def start(self) -> None:
Expand Down

0 comments on commit eac5100

Please sign in to comment.