docs: Add logging to extension example
This commit is contained in:
parent
e4869e9e34
commit
06abe7c5e0
@ -261,6 +261,7 @@ This is ``mopidy_soundspot/__init__.py``::
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import logging
|
||||
import os
|
||||
|
||||
import pygst
|
||||
@ -273,6 +274,9 @@ This is ``mopidy_soundspot/__init__.py``::
|
||||
|
||||
__version__ = '0.1'
|
||||
|
||||
# If you need to log, use loggers named after the current Python module
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Extension(ext.Extension):
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user