Skip to content

Commit

Permalink
change some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusStrobl committed Apr 5, 2024
1 parent e810a4c commit 36c37b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion processes/podman_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def pull_run_image(client, image_name, container_name, environment=None, mounts=
logging.info(f" _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Container '{container.name}' logs: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ")
for line in container.logs(stream=True):
print(line.strip().decode('utf-8'))
logging.info(line.decode('utf-8'))
logging.info(f" - - {line.decode('utf-8')} - - ")
logging.info(" _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fnished logs _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ")

return container
# return {
Expand Down
4 changes: 2 additions & 2 deletions processes/tool_vforwater_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ def execute(self, data):
try: # try to get info about container
status = container.status
logging.info(f"Podman status before remove is {status}")
tool_logs = container.logs()
tool_logs = tool_logs.decode('utf-8')
logs = container.logs()
tool_logs = logs.decode('utf-8')
except Exception as e:
logging.error(f'Error running Podman: {e}')
error = f'1: Container Exception: {error} --- 2: Get status Exception {e}'
Expand Down

0 comments on commit 36c37b1

Please sign in to comment.