Skip to content

Commit

Permalink
test: reduce test logging and output docker log
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzac committed Aug 8, 2024
1 parent 6dd787f commit 12f7e0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node/api_clients/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def make_request(self, method, url, headers=None, data=None):
except Exception as err:
logger.error(f"An error occurred: {err}. Response content: {response.content}")
raise Exception(f"Error: {err} with response: {response.content}")
else:
logger.info(f"Response status code: {response.status_code}. Response content: {response.content}")
# else:
# logger.info(f"Response status code: {response.status_code}. Response content: {response.content}")
return response

def log_request_as_curl(self, method, url, headers, data):
Expand Down
1 change: 1 addition & 0 deletions src/node/docker_mananger.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def _log_container_output(self, container, log_path):
with open(log_path, "wb+") as log_file:
for chunk in container.logs(stream=True):
log_file.write(chunk)
logger.debug(f"DOCKER LOG {chunk}")

def generate_ports(self, base_port=None, count=5):
if base_port is None:
Expand Down

0 comments on commit 12f7e0a

Please sign in to comment.