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:
parent
a5a27829de
commit
cd119be631
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user