From 060543f62c348dfbea1f755074544f346e3c9f64 Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Wed, 5 Dec 2018 17:15:15 +0100
Subject: [PATCH] Fixed logging issues

---
 api/funkwhale_api/common/channels.py | 2 +-
 api/funkwhale_api/music/models.py    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/funkwhale_api/common/channels.py b/api/funkwhale_api/common/channels.py
index b8106bef..d9422f6f 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 ff7561b4..21ecb994 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():
-- 
GitLab