From 630f401cee1643868652cca0b5a6732db5deed61 Mon Sep 17 00:00:00 2001 From: SwiftyOS Date: Thu, 12 Sep 2024 10:05:44 +0200 Subject: [PATCH] formatting --- rnd/autogpt_server/autogpt_server/util/logging.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/rnd/autogpt_server/autogpt_server/util/logging.py b/rnd/autogpt_server/autogpt_server/util/logging.py index 0f6b374de4..a587d4243d 100644 --- a/rnd/autogpt_server/autogpt_server/util/logging.py +++ b/rnd/autogpt_server/autogpt_server/util/logging.py @@ -1,17 +1,15 @@ +import logging import os -from autogpt_libs.logging.config import configure_logging +import autogpt_libs.logging.config def configure_logging(): - import logging - - from autogpt_libs.logging import configure_logging if os.getenv("APP_ENV") != "cloud": - configure_logging() + autogpt_libs.logging.config.configure_logging() else: - configure_logging(force_cloud_logging=True) + autogpt_libs.logging.config.configure_logging(force_cloud_logging=True) # Silence httpx logger logging.getLogger("httpx").setLevel(logging.WARNING)