From 32b21cbc18bd69aed1e1a15dc091d1ae2a993fa1 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 1 Mar 2011 08:47:53 +0100 Subject: [PATCH] Add a clue in solving issue with wrapping wrapped commands --- src/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands.py b/src/commands.py index be0dc2d4b..2a2b65edd 100644 --- a/src/commands.py +++ b/src/commands.py @@ -929,6 +929,8 @@ def wrap(f, specList=[], name=None, **kw): code = f.func_code funcArgs = inspect.getargs(code)[0][len(self.commandArgs):] self.log.error('Extra args: %s', funcArgs) + self.log.debug('Make sure you did not wrap a wrapped ' + 'function ;)') raise return utils.python.changeFunctionName(newf, name, f.__doc__)