Skip to content

Commit 1aaba3f

Browse files
authored
run.py env var to skip exception logging (#946)
1 parent 51f09a7 commit 1aaba3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

benchmarks/run.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ def describe_tensor(obj: object) -> object:
8484

8585
logger: logging.Logger = logging.getLogger(__name__)
8686

87+
if os.getenv("HELION_BENCHMARK_DISABLE_LOGGING", "0") == "1":
88+
logging.disable(logging.CRITICAL)
89+
8790
# Maximum number of inputs to use
8891
MAX_NUM_INPUTS = 20
8992

0 commit comments

Comments
 (0)