From ac800d2e148fb3a53cd1d3d9baeb83d8f3f23d81 Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Sun, 28 May 2017 23:02:34 +0200 Subject: [PATCH] [cli] Setup logging to unsilence stevedore errors, like failing to load an entrypoint. --- Makefile | 2 +- bonobo/commands/__init__.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index a6fb6f8..783e61b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # This file has been auto-generated. # All changes will be lost, see Projectfile. # -# Updated at 2017-05-28 18:02:16.552433 +# Updated at 2017-05-28 22:04:19.262686 PACKAGE ?= bonobo PYTHON ?= $(shell which python) diff --git a/bonobo/commands/__init__.py b/bonobo/commands/__init__.py index 37d55b1..feae672 100644 --- a/bonobo/commands/__init__.py +++ b/bonobo/commands/__init__.py @@ -5,6 +5,7 @@ from stevedore import ExtensionManager def entrypoint(args=None): + logging.basicConfig() parser = argparse.ArgumentParser() subparsers = parser.add_subparsers(dest='command') @@ -19,9 +20,7 @@ def entrypoint(args=None): except Exception: logging.exception('Error while loading command {}.'.format(ext.name)) - mgr = ExtensionManager( - namespace='bonobo.commands', - ) + mgr = ExtensionManager(namespace='bonobo.commands') mgr.map(register_extension) args = parser.parse_args(args).__dict__