Skip to content

Commit 3bc890a

Browse files
author
Simone Pierazzini
committed
use preconfigured plexapi logger instead of plexapi.utils
1 parent 94636d7 commit 3bc890a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

plexapi/utils.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
from getpass import getpass
1010
from threading import Thread, Event
1111
from tqdm import tqdm
12-
from plexapi import compat
12+
from plexapi import compat, log
1313
from plexapi.exceptions import NotFound
1414

1515

16-
LOG = logging.getLogger(__name__)
17-
18-
1916
# Search Types - Plex uses these to filter specific media types when searching.
2017
# Library Types - Populated at runtime
2118
SEARCHTYPES = {'movie': 1, 'show': 2, 'season': 3, 'episode': 4, 'trailer': 5, 'comic': 6, 'person': 7,
@@ -183,7 +180,7 @@ def toDatetime(value, format=None):
183180
try:
184181
value = datetime.strptime(value, format)
185182
except ValueError:
186-
LOG.info('Failed to parse %s to datetime, defaulting to None', value)
183+
log.info('Failed to parse %s to datetime, defaulting to None', value)
187184
return None
188185
else:
189186
# https://bugs.python.org/issue30684

0 commit comments

Comments
 (0)