]> kaliko git repositories - python-musicpd.git/commitdiff
Add module name in logger in example
authorKaliko Jack <kaliko@azylum.org>
Wed, 10 Apr 2024 16:14:15 +0000 (18:14 +0200)
committerKaliko Jack <kaliko@azylum.org>
Wed, 10 Apr 2024 16:14:15 +0000 (18:14 +0200)
doc/source/examples/client.py

index 41ef1bdbf938757e8d4ce370f5503b40be23b159..359867392fc844e994757a4c29670bd10914c051 100644 (file)
@@ -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