diff --git a/common/logger.py b/common/logger.py index 0150ad0..07f0502 100644 --- a/common/logger.py +++ b/common/logger.py @@ -1,9 +1,11 @@ # SPDX-FileCopyrightText: 2023 Aravinth Manivannan # # SPDX-License-Identifier: AGPL-3.0-or-later - +from urllib.parse import urlparse, urlunparse import logging +import requests + LOG_FILE = "ap.log" @@ -28,6 +30,7 @@ logger = configure_logger() def upload_logs_to_ftest(success: bool, logs: str): + from .env import FTEST_HOST, FTEST_AUTH parsed_ftest_host = urlparse(FTEST_HOST) ftest = urlunparse( (