From cd10c63272151a8cab942cf21ad63668cf17397d Mon Sep 17 00:00:00 2001 From: Kaliko Jack Date: Wed, 10 Apr 2024 18:14:15 +0200 Subject: [PATCH] Add module name in logger in example --- doc/source/examples/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/examples/client.py b/doc/source/examples/client.py index 41ef1bd..3598673 100644 --- a/doc/source/examples/client.py +++ b/doc/source/examples/client.py @@ -13,7 +13,7 @@ class MyClient(musicpd.MPDClient): def __init__(self): # Set logging to debug level logging.basicConfig(level=logging.DEBUG, - format='%(levelname)-8s %(message)s') + format='%(levelname)-8s %(module)-8s %(message)s') self.log = logging.getLogger(__name__) super().__init__() # Set host/port/password after init to overrides defaults -- 2.39.5