From 7bb659539431e5ac8ccf4f8929ae7667e37a0df1 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Sun, 1 Oct 2023 20:29:06 +0530 Subject: [PATCH] fix: imports --- common/logger.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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( (