diff --git a/smartsim/_core/entrypoints/colocated.py b/smartsim/_core/entrypoints/colocated.py index ae26b0640..3957a6529 100644 --- a/smartsim/_core/entrypoints/colocated.py +++ b/smartsim/_core/entrypoints/colocated.py @@ -204,9 +204,9 @@ def main( try: hostname = socket.gethostname() filename = ( - f"{hostname}.log" + f"colo_orc_{hostname}.log" if os.getenv("SMARTSIM_LOG_LEVEL") == "debug" - else "/dev/null" + else os.devnull ) with open(filename, "w", encoding="utf-8") as file: process = psutil.Popen(cmd, stdout=file.fileno(), stderr=STDOUT)