Skip to content

Commit

Permalink
Use StashLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
stg-annon committed Mar 7, 2024
1 parent 1c05a6b commit e1096f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/performerBodyCalculator/performer_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1096f4

Please sign in to comment.