Skip to content

Commit

Permalink
Refactor FlexHelper -> FlexConnect
Browse files Browse the repository at this point in the history
  • Loading branch information
d8ahazard committed Apr 26, 2019
1 parent 98b5c99 commit 87b773a
Show file tree
Hide file tree
Showing 8 changed files with 110,087 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,5 +1,5 @@
data.json
FlexHelper.log
FlexConnect.log
/.idea/*
*__pycache__
*.dist-info
Expand Down
4 changes: 2 additions & 2 deletions FlexHelper.py → FlexConnect.py
Expand Up @@ -26,10 +26,10 @@

__author__ = 'digitalhigh'

Log = logging.getLogger('FlexHelper')
Log = logging.getLogger('FlexConnect')
Log.setLevel(logging.DEBUG)
# create file handler which logs even debug messages
fh = logging.FileHandler('./FlexHelper.log')
fh = logging.FileHandler('./FlexConnect.log')
fh.setLevel(logging.DEBUG)
# create console handler with a higher log level
ch = logging.StreamHandler()
Expand Down
110,078 changes: 110,078 additions & 0 deletions FlexHelper.log

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cmd.py
Expand Up @@ -3,7 +3,7 @@
import logging
from time import sleep

log = logging.getLogger('FlexHelper')
log = logging.getLogger('FlexConnect')


def run_command(command, single=True):
Expand Down
2 changes: 1 addition & 1 deletion flex_container.py
Expand Up @@ -4,7 +4,7 @@

from bottle import request, response

Log = getLogger('FlexHelper')
Log = getLogger('FlexConnect')


class FlexContainer:
Expand Down
2 changes: 1 addition & 1 deletion lib/monitor/__init__.py
Expand Up @@ -7,7 +7,7 @@
from cmd import run_command


log = logging.getLogger('FlexHelper')
log = logging.getLogger('FlexConnect')


def to_base(value):
Expand Down
4 changes: 2 additions & 2 deletions lib/pychromecast/__init__.py
Expand Up @@ -14,7 +14,7 @@
CAST_TYPE_CHROMECAST
from .controllers.media import STREAM_TYPE_BUFFERED # noqa

Log = getLogger('FlexHelper')
Log = getLogger('FlexConnect')

__all__ = (
'__version__', '__version_info__', 'get_chromecasts', 'Chromecast',
Expand Down Expand Up @@ -126,7 +126,7 @@ def __init__(self, host, port=None, device=None, **kwargs):
retry_wait = kwargs.pop('retry_wait', None)
blocking = kwargs.pop('blocking', True)

self.logger = getLogger("FlexHelper")
self.logger = getLogger("FlexConnect")

# Resolve host to IP address
self.host = host
Expand Down
2 changes: 1 addition & 1 deletion lib/pychromecast/controllers/plex.py
Expand Up @@ -26,7 +26,7 @@
TYPE_MEDIA_STATUS = 'MEDIA_STATUS'
TYPE_GET_STATUS = "GET_STATUS"

log = logging.getLogger('FlexHelper')
log = logging.getLogger('FlexConnect')

class PlexController(BaseController):
""" Controller to interact with Plex namespace. """
Expand Down

0 comments on commit 87b773a

Please sign in to comment.