diff --git a/api/funkwhale_api/common/channels.py b/api/funkwhale_api/common/channels.py index b8106bef4..d9422f6fa 100644 --- a/api/funkwhale_api/common/channels.py +++ b/api/funkwhale_api/common/channels.py @@ -5,7 +5,7 @@ from asgiref.sync import async_to_sync from channels.layers import get_channel_layer from django.core.serializers.json import DjangoJSONEncoder -logger = logging.getLogger(__file__) +logger = logging.getLogger(__name__) channel_layer = get_channel_layer() group_add = async_to_sync(channel_layer.group_add) diff --git a/api/funkwhale_api/music/models.py b/api/funkwhale_api/music/models.py index ff7561b4b..21ecb994c 100644 --- a/api/funkwhale_api/music/models.py +++ b/api/funkwhale_api/music/models.py @@ -29,7 +29,7 @@ from funkwhale_api.federation import models as federation_models from funkwhale_api.federation import utils as federation_utils from . import importers, metadata, utils -logger = logging.getLogger(__file__) +logger = logging.getLogger(__name__) def empty_dict():