rename to KernelContext and move the linearize_sched comment [pr] (#8899)

* rename to KernelContext and move that comment [pr]

* 500
This commit is contained in:
qazal
2025-02-05 07:49:58 +01:00
committed by GitHub
parent 6fb0e5751b
commit 6f0cc2e9c5
2 changed files with 9 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ os.environ["RUN_PROCESS_REPLAY"] = "0"
os.environ["CAPTURE_PROCESS_REPLAY"] = "0"
early_stop = multiprocessing.Event()
logging.basicConfig(level=logging.INFO, format="%(message)s")
MAX_LINES = 1_000
MAX_LINES = 500
def trunc_log(x):
if len(lines:=repr(x).splitlines()) > MAX_LINES: lines = lines[:MAX_LINES]+[f"WARN: truncated string with {len(lines)} lines"]
logging.info("\n".join(lines))