Skip to content

Commit f25aab8

Browse files
committed
Name loggers using __name__
1 parent 7b8eb75 commit f25aab8

7 files changed

+7
-7
lines changed

mopidy_spotify/backend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from mopidy_spotify.session_manager import SpotifySessionManager
1111
from mopidy_spotify.playlists import SpotifyPlaylistsProvider
1212

13-
logger = logging.getLogger('mopidy_spotify')
13+
logger = logging.getLogger(__name__)
1414

1515

1616
class SpotifyBackend(pykka.ThreadingActor, base.Backend):

mopidy_spotify/container_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from spotify.manager import SpotifyContainerManager as \
66
PyspotifyContainerManager
77

8-
logger = logging.getLogger('mopidy_spotify')
8+
logger = logging.getLogger(__name__)
99

1010

1111
class SpotifyContainerManager(PyspotifyContainerManager):

mopidy_spotify/library.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from . import translator
1515

16-
logger = logging.getLogger('mopidy_spotify')
16+
logger = logging.getLogger(__name__)
1717

1818
SPOTIFY_COUNTRIES = {
1919
'AD': 'Andorra',

mopidy_spotify/playback.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from mopidy.backends import base
1010

1111

12-
logger = logging.getLogger('mopidy_spotify')
12+
logger = logging.getLogger(__name__)
1313

1414

1515
def need_data_callback(spotify_backend, length_hint):

mopidy_spotify/playlist_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from spotify.manager import SpotifyPlaylistManager as PyspotifyPlaylistManager
77

8-
logger = logging.getLogger('mopidy_spotify')
8+
logger = logging.getLogger(__name__)
99

1010

1111
class SpotifyPlaylistManager(PyspotifyPlaylistManager):

mopidy_spotify/session_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from .container_manager import SpotifyContainerManager
1515
from .playlist_manager import SpotifyPlaylistManager
1616

17-
logger = logging.getLogger('mopidy_spotify')
17+
logger = logging.getLogger(__name__)
1818

1919
BITRATES = {96: 2, 160: 0, 320: 1}
2020

mopidy_spotify/translator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from mopidy.models import Artist, Album, Playlist, Ref, Track
99

1010

11-
logger = logging.getLogger('mopidy_spotify')
11+
logger = logging.getLogger(__name__)
1212

1313
artist_cache = {}
1414
album_cache = {}

0 commit comments

Comments
 (0)