Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use module name in loggers #40

Merged
merged 1 commit into from Jul 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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