diff --git a/mopidy/__main__.py b/mopidy/__main__.py index bce3804c..035e0ae9 100644 --- a/mopidy/__main__.py +++ b/mopidy/__main__.py @@ -97,7 +97,9 @@ def main(): parser.error('Can not run sub-command %s from the disabled ' 'extension %s.' % (cmd.name, extension.ext_name)) - sys.exit(cmd.run(args, proxied_config)) + logging.info('Running %s command provided by %s.', cmd.name, + extension.ext_name) + sys.exit(cmd.run(args, proxied_config, enabled_extensions)) if args.command == 'run': ext.register_gstreamer_elements(enabled_extensions) diff --git a/mopidy/backends/base.py b/mopidy/backends/base.py index 9dc9befa..2fb20d03 100644 --- a/mopidy/backends/base.py +++ b/mopidy/backends/base.py @@ -300,13 +300,14 @@ class BaseSubCommandProvider(object): def __init__(self, parser): pass - def run(self, args, config): + def run(self, args, config, extensions): """Run the sub-command implemented by this provider. *MUST be implemented by subclass.* :param args: the argments object from argpase. :param config: read only version of the mopidy config. + :param extensions: list of enabled extensions. :returns: integer exit value for the process. """ raise NotImplementedError