Update check_logs function in checker.py to suppress color output in docker logs retrieval. This change enhances log readability by ensuring that the output is plain text, improving clarity for subsequent log analysis.

This commit is contained in:
vvzvlad 2025-01-19 11:38:25 +03:00
parent a5a27829de
commit cd119be631

View File

@ -133,7 +133,7 @@ class GRIST:
def check_logs(log_handler):
try:
logs = subprocess.run(['docker', 'logs', '--since', '10m', 'infernet-node'], capture_output=True, text=True, check=True)
logs = subprocess.run(['docker', 'logs', '--since', '10m', '--no-color', 'infernet-node'], capture_output=True, text=True, check=True)
log_content = logs.stdout
except subprocess.CalledProcessError as e:
raise RuntimeError(f"Error running docker logs: {e}")