diff --git a/lib/agent0/agent0/hyperdrive/interactive/interactive_hyperdrive.py b/lib/agent0/agent0/hyperdrive/interactive/interactive_hyperdrive.py index 6851ec7bb9..334661e557 100644 --- a/lib/agent0/agent0/hyperdrive/interactive/interactive_hyperdrive.py +++ b/lib/agent0/agent0/hyperdrive/interactive/interactive_hyperdrive.py @@ -2,6 +2,7 @@ from __future__ import annotations import asyncio +import logging import os import time from dataclasses import asdict, dataclass @@ -99,7 +100,7 @@ class Config: Whether to log crash reports to rollbar. Defaults to False. rollbar_log_prefix: str | None, optional The prefix to prepend to rollbar exception messages - crash_log_level: int | None, optional + crash_log_level: int, optional The log level to log crashes at. Defaults to critical. crash_log_ticker: bool | None, optional Whether to log the trade ticker in crash reports. Defaults to False. @@ -150,7 +151,7 @@ class Config: preview_before_trade: bool = False log_to_rollbar: bool = False rollbar_log_prefix: str | None = None - crash_log_level: int | None = None + crash_log_level: int = logging.CRITICAL crash_log_ticker: bool = False # Random generators rng_seed: int | None = None diff --git a/lib/agent0/agent0/interactive_fuzz/helpers/setup_fuzz.py b/lib/agent0/agent0/interactive_fuzz/helpers/setup_fuzz.py index e3d007eaa4..8c7e4c9d8c 100644 --- a/lib/agent0/agent0/interactive_fuzz/helpers/setup_fuzz.py +++ b/lib/agent0/agent0/interactive_fuzz/helpers/setup_fuzz.py @@ -1,6 +1,8 @@ """Setup an interactive enfironment for fuzz testing.""" from __future__ import annotations +import logging + import numpy as np from fixedpointmath import FixedPoint from hyperlogs import setup_logging @@ -73,6 +75,9 @@ def setup_fuzz( # Parameters for pool initialization. # Using a day for checkpoint duration to speed things up + if crash_log_level is None: + crash_log_level = logging.CRITICAL + initial_pool_config = InteractiveHyperdrive.Config( preview_before_trade=True, checkpoint_duration=86400,