From: Kaliko Jack Date: Wed, 10 Apr 2024 16:14:15 +0000 (+0200) Subject: Add module name in logger in example X-Git-Tag: v0.9.0~3 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=cd10c63272151a8cab942cf21ad63668cf17397d;p=python-musicpd.git Add module name in logger in example --- 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