mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-02-06 14:54:40 +01:00
AutoGPT/v2: Disable OpenAI log spam
This commit is contained in:
@@ -2,6 +2,7 @@ import logging
|
||||
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 = (
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user