diff options
author | Krzysztof Czerwinski <34861343+kcze@users.noreply.github.com> | 2024-04-22 20:24:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 20:24:11 +0200 |
commit | 07044043449f254b22de682445d4aa7feae2842c (patch) | |
tree | 016a69cb632225f8908a5030d1f3a9be843aae2b | |
parent | feat(agent): Component-based Agents (#7054) (diff) | |
download | Auto-GPT-07044043449f254b22de682445d4aa7feae2842c.tar.gz Auto-GPT-07044043449f254b22de682445d4aa7feae2842c.tar.bz2 Auto-GPT-07044043449f254b22de682445d4aa7feae2842c.zip |
fix(agent): Logging hotfix (#7096)
Fix https://github.com/Significant-Gravitas/AutoGPT/commit/cf00c33f907b12e48218404f849c11beb568001b
-rw-r--r-- | autogpts/autogpt/autogpt/app/main.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/autogpts/autogpt/autogpt/app/main.py b/autogpts/autogpt/autogpt/app/main.py index 9f167bb2e..8db146ec9 100644 --- a/autogpts/autogpt/autogpt/app/main.py +++ b/autogpts/autogpt/autogpt/app/main.py @@ -37,7 +37,7 @@ from autogpt.config import ( from autogpt.core.resource.model_providers.openai import OpenAIProvider from autogpt.core.runner.client_lib.utils import coroutine from autogpt.file_storage import FileStorageBackendName, get_storage -from autogpt.logs.config import configure_chat_plugins, configure_logging +from autogpt.logs.config import LoggingConfig, configure_chat_plugins, configure_logging from autogpt.logs.helpers import print_attribute, speak from autogpt.models.action_history import ActionInterruptedByHuman from autogpt.plugins import scan_plugins @@ -486,13 +486,12 @@ async def run_interaction_loop( legacy_config = agent.legacy_config ai_profile = agent.ai_profile logger = logging.getLogger(__name__) + config = LoggingConfig.from_env() cycle_budget = cycles_remaining = _get_cycle_budget( legacy_config.continuous_mode, legacy_config.continuous_limit ) - spinner = Spinner( - "Thinking...", plain_output=legacy_config.logging.plain_console_output - ) + spinner = Spinner("Thinking...", plain_output=config.plain_console_output) stop_reason = None def graceful_agent_interrupt(signum: int, frame: Optional[FrameType]) -> None: |