From e1096f4915015e85b9b10441a3655393288bacbe Mon Sep 17 00:00:00 2001 From: stg-annon <14135675+stg-annon@users.noreply.github.com> Date: Thu, 7 Mar 2024 07:30:44 -0500 Subject: [PATCH] Use StashLogger --- plugins/performerBodyCalculator/performer_calculator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/performerBodyCalculator/performer_calculator.py b/plugins/performerBodyCalculator/performer_calculator.py index e1d5374..e8e6cf0 100644 --- a/plugins/performerBodyCalculator/performer_calculator.py +++ b/plugins/performerBodyCalculator/performer_calculator.py @@ -4,12 +4,12 @@ from body_tags import * try: - import stashapi.log as log - log.LEVEL = config.log_level + from stashapi.log import StashLogger except ModuleNotFoundError: print("You need to install stashapp-tools. (https://pypi.org/project/stashapp-tools/)", file=sys.stderr) print("If you have pip (normally installed with python), run this command in a terminal (cmd): 'pip install stashapp-tools'", file=sys.stderr) sys.exit() +log = StashLogger(config.log_level) class DebugException(Exception): pass