summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-04-01 23:25:07 +0200
committerJan Pokorný <jpokorny@redhat.com>2015-04-08 19:55:40 +0200
commita8369078ff3dba14116ec59fb99368433ea33086 (patch)
tree0df96b5f2a81537364aac569bbb148d206b7ddde /main.py
parent5c4920e209aa7e4702907bd229998a227feb5f08 (diff)
downloadclufter-a8369078ff3dba14116ec59fb99368433ea33086.tar.gz
clufter-a8369078ff3dba14116ec59fb99368433ea33086.tar.xz
clufter-a8369078ff3dba14116ec59fb99368433ea33086.zip
main: enable the option-handling callbacks to be verbose
(preparation work) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index 1e86387..156c937 100644
--- a/main.py
+++ b/main.py
@@ -256,6 +256,8 @@ def run(argv=None, *args):
except AttributeError:
pass
set_logging(opts)
+ log = logging.getLogger(__name__)
+ map(lambda args: log.log(*args), getattr(opts, '_deferred_log', ()))
cm = CommandManager.init_lookup(ext_plugins=not opts.skip_ext,
ext_plugins_user=opts.ext_user,