From cfc5c6998a03b53c1e60fc23c2b4e679fa41a66b Mon Sep 17 00:00:00 2001 From: MDHMatt <10845262+MDHMatt@users.noreply.github.com> Date: Sun, 17 Jul 2022 18:06:48 +0100 Subject: [PATCH] fix(logging): remove depreciation warning. Var for debug mode (#240) --- Varken.py | 5 +++-- varken.xml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Varken.py b/Varken.py index c494eaf2..4a1f2386 100644 --- a/Varken.py +++ b/Varken.py @@ -1,16 +1,17 @@ import platform import schedule +import distro from time import sleep from queue import Queue from sys import version from threading import Thread from os import environ as env from os import access, R_OK, getenv -from distro import linux_distribution from os.path import isdir, abspath, dirname, join from argparse import ArgumentParser, RawTextHelpFormatter from logging import getLogger, StreamHandler, Formatter, DEBUG + # Needed to check version of python from varken import structures # noqa from varken.ombi import OmbiAPI @@ -28,7 +29,7 @@ from varken.varkenlogger import VarkenLogger -PLATFORM_LINUX_DISTRO = ' '.join(x for x in linux_distribution() if x) +PLATFORM_LINUX_DISTRO = ' '.join(distro.id() + distro.version() + distro.name()) def thread(job, **kwargs): diff --git a/varken.xml b/varken.xml index b846c575..ab09d2d5 100644 --- a/varken.xml +++ b/varken.xml @@ -51,5 +51,6 @@ 99 100 + False /mnt/user/appdata/varken \ No newline at end of file