From 2db738e8996528502293b8cc6861efedcba22c9a Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Mon, 24 Nov 2008 10:09:30 -0700 Subject: Some changes to make reading dubugging output easier --- ipalib/frontend.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipalib/frontend.py') diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 6e79e539..6dcbea69 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -539,6 +539,7 @@ class Command(plugable.Plugin): If not in a server context, the call will be forwarded over XML-RPC and the executed an the nearest IPA server. """ + self.debug(make_repr(self.name, *args, **kw)) if len(args) > 0: arg_kw = self.args_to_kw(*args) assert set(arg_kw).intersection(kw) == set() @@ -548,7 +549,9 @@ class Command(plugable.Plugin): kw.update(self.get_default(**kw)) self.validate(**kw) (args, options) = self.params_2_args_options(kw) - return self.run(*args, **options) + result = self.run(*args, **options) + self.debug('%s result: %r', self.name, result) + return result def args_to_kw(self, *values): """ -- cgit