This commit is contained in:
parent
d4014ba274
commit
7bb6595394
1 changed files with 4 additions and 1 deletions
|
@ -1,9 +1,11 @@
|
||||||
# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
from urllib.parse import urlparse, urlunparse
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import requests
|
||||||
|
|
||||||
LOG_FILE = "ap.log"
|
LOG_FILE = "ap.log"
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,6 +30,7 @@ logger = configure_logger()
|
||||||
|
|
||||||
|
|
||||||
def upload_logs_to_ftest(success: bool, logs: str):
|
def upload_logs_to_ftest(success: bool, logs: str):
|
||||||
|
from .env import FTEST_HOST, FTEST_AUTH
|
||||||
parsed_ftest_host = urlparse(FTEST_HOST)
|
parsed_ftest_host = urlparse(FTEST_HOST)
|
||||||
ftest = urlunparse(
|
ftest = urlunparse(
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in a new issue