From 0ba319e7009ee2612c18d6c0adecfa8554cecb9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Sun, 19 Apr 2020 06:13:25 +0200 Subject: [PATCH] Use __name__ for all logger names --- context.py | 2 +- context_play.py | 2 +- default.py | 2 +- jellyfin_kodi/entrypoint/__init__.py | 2 +- service.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/context.py b/context.py index c3cba508..35655d7d 100644 --- a/context.py +++ b/context.py @@ -22,7 +22,7 @@ from helper import LazyLogger # noqa: F402 ################################################################################################# -LOG = LazyLogger("context") +LOG = LazyLogger(__name__) ################################################################################################# diff --git a/context_play.py b/context_play.py index 48e3cc15..2788a23d 100644 --- a/context_play.py +++ b/context_play.py @@ -22,7 +22,7 @@ from helper import LazyLogger # noqa: F402 ################################################################################################# -LOG = LazyLogger("context_play") +LOG = LazyLogger(__name__) ################################################################################################# diff --git a/default.py b/default.py index 210bf991..a4eb60c4 100644 --- a/default.py +++ b/default.py @@ -22,7 +22,7 @@ from helper import LazyLogger # noqa: F402 ################################################################################################# -LOG = LazyLogger("default") +LOG = LazyLogger(__name__) ################################################################################################# diff --git a/jellyfin_kodi/entrypoint/__init__.py b/jellyfin_kodi/entrypoint/__init__.py index ebb84487..84a9e4b4 100644 --- a/jellyfin_kodi/entrypoint/__init__.py +++ b/jellyfin_kodi/entrypoint/__init__.py @@ -16,6 +16,6 @@ from .context import Context ################################################################################################# -LOG = LazyLogger("entrypoint") +LOG = LazyLogger(__name__) ################################################################################################# diff --git a/service.py b/service.py index 30790e63..5b8447a1 100644 --- a/service.py +++ b/service.py @@ -24,7 +24,7 @@ from helper import LazyLogger # noqa: F402 ################################################################################################# -LOG = LazyLogger("service") +LOG = LazyLogger(__name__) DELAY = int(settings('startupDelay') if settings('SyncInstallRunDone.bool') else 4 or 0) #################################################################################################