Skip to content

Commit

Permalink
Use logging from factory
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Oct 18, 2022
1 parent d43b44e commit 6795d09
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
3 changes: 1 addition & 2 deletions plextraktsync/commands/clear_collections.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import click

from plextraktsync.factory import factory
from plextraktsync.logging import logger
from plextraktsync.factory import factory, logger


def clear_collections(confirm, dry_run):
Expand Down
3 changes: 1 addition & 2 deletions plextraktsync/commands/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
from trakt import __version__ as TRAKT_API_VERSION

from plextraktsync.commands.plex_login import has_plex_token
from plextraktsync.factory import factory
from plextraktsync.logging import logger
from plextraktsync.factory import factory, logger
from plextraktsync.path import cache_dir, config_dir, log_dir
from plextraktsync.version import version as get_version

Expand Down
3 changes: 1 addition & 2 deletions plextraktsync/commands/watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
from plextraktsync.decorators.cached_property import cached_property
from plextraktsync.events import (ActivityNotification, Error,
PlaySessionStateNotification, TimelineEntry)
from plextraktsync.factory import factory
from plextraktsync.factory import factory, logging
from plextraktsync.listener import WebSocketListener
from plextraktsync.logging import logging
from plextraktsync.media import Media, MediaFactory
from plextraktsync.plex_api import PlexApi, PlexLibraryItem
from plextraktsync.trakt_api import TraktApi
Expand Down
2 changes: 1 addition & 1 deletion plextraktsync/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from plexapi.server import PlexServer

from plextraktsync.events import Error, EventFactory
from plextraktsync.logging import logging
from plextraktsync.factory import logging


class EventDispatcher:
Expand Down
3 changes: 1 addition & 2 deletions plextraktsync/plex_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

from plextraktsync.config import PLEX_PLATFORM
from plextraktsync.decorators.nocache import nocache
from plextraktsync.factory import Factory
from plextraktsync.logging import logging
from plextraktsync.factory import Factory, logging


class PlexServerConnection:
Expand Down
3 changes: 1 addition & 2 deletions plextraktsync/trakt_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
from plextraktsync.decorators.rate_limit import rate_limit
from plextraktsync.decorators.retry import retry
from plextraktsync.decorators.time_limit import time_limit
from plextraktsync.factory import factory, logger
from plextraktsync.logging import logging
from plextraktsync.factory import factory, logger, logging
from plextraktsync.path import pytrakt_file
from plextraktsync.plex_api import PlexGuid, PlexLibraryItem

Expand Down

0 comments on commit 6795d09

Please sign in to comment.