Skip to content

Commit

Permalink
AutoGPT/v2: Disable OpenAI log spam
Browse files Browse the repository at this point in the history
  • Loading branch information
Pwuts committed Sep 15, 2023
1 parent 77eebbd commit bbb526e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autogpts/autogpt/autogpt/core/runner/client_lib/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys

from colorama import Fore, Style
from openai.util import logger as openai_logger

SIMPLE_LOG_FORMAT = "%(asctime)s %(levelname)s %(message)s"
DEBUG_LOG_FORMAT = (
Expand All @@ -22,6 +23,9 @@ def configure_root_logger():

logging.basicConfig(level=logging.DEBUG, handlers=[stdout, stderr])

# Disable debug logging from OpenAI library
openai_logger.setLevel(logging.INFO)


def get_client_logger():
# Configure logging before we do anything else.
Expand Down

0 comments on commit bbb526e

Please sign in to comment.