Skip to content

Commit

Permalink
Merge pull request #40 from hairmare/chore/cleanup-logger-names
Browse files Browse the repository at this point in the history
Use module name in loggers
  • Loading branch information
hairmare committed Jul 14, 2019
2 parents 624239d + 39e8522 commit fa8ff23
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion nowplaying/daemon.py
Expand Up @@ -10,7 +10,7 @@
from track import observer as trackObservers
from track.handler import TrackEventHandler

logger = logging.getLogger("now-playing")
logger = logging.getLogger(__name__)


class NowPlayingDaemon:
Expand Down
2 changes: 1 addition & 1 deletion nowplaying/input/handler.py
Expand Up @@ -3,7 +3,7 @@

from input.observer import InputObserver

logger = logging.getLogger("now-playing")
logger = logging.getLogger(__name__)


class InputHandler:
Expand Down
2 changes: 1 addition & 1 deletion nowplaying/input/observer.py
Expand Up @@ -13,7 +13,7 @@
from show.show import Show
from track.track import DEFAULT_ARTIST, DEFAULT_TITLE, Track

logger = logging.getLogger("now-playing")
logger = logging.getLogger(__name__)


class InputObserver(ABC):
Expand Down
2 changes: 1 addition & 1 deletion nowplaying/misc/saemubox.py
Expand Up @@ -5,7 +5,7 @@
import time
import warnings

logger = logging.getLogger("now-playing")
logger = logging.getLogger(__name__)


class SaemuBoxError(Exception):
Expand Down
2 changes: 1 addition & 1 deletion nowplaying/show/client.py
Expand Up @@ -11,7 +11,7 @@

from . import show

logger = logging.getLogger("now-playing")
logger = logging.getLogger(__name__)


class ShowClientError(Exception):
Expand Down
2 changes: 1 addition & 1 deletion nowplaying/show/show.py
Expand Up @@ -5,7 +5,7 @@

import pytz

logger = logging.getLogger("now-playing")
logger = logging.getLogger(__name__)

DEFAULT_SHOW_URL = "https://www.rabe.ch"

Expand Down
2 changes: 1 addition & 1 deletion nowplaying/track/handler.py
Expand Up @@ -3,7 +3,7 @@

from track.observer import TrackObserver

logger = logging.getLogger("now-playing")
logger = logging.getLogger(__name__)


class TrackEventHandler:
Expand Down
2 changes: 1 addition & 1 deletion nowplaying/track/observer.py
Expand Up @@ -15,7 +15,7 @@
import pylast
import pytz

logger = logging.getLogger("now-playing")
logger = logging.getLogger(__name__)


class TrackObserver(ABC):
Expand Down
2 changes: 1 addition & 1 deletion nowplaying/track/track.py
Expand Up @@ -5,7 +5,7 @@

import pytz

logger = logging.getLogger("now-playing")
logger = logging.getLogger(__name__)

DEFAULT_ARTIST = "Radio Bern"
DEFAULT_TITLE = "Livestream"
Expand Down

0 comments on commit fa8ff23

Please sign in to comment.