From 40c1009f49ebb82239d2b53673d3fb8542f1dcfa Mon Sep 17 00:00:00 2001 From: Mahmoud Hashemi Date: Thu, 2 May 2019 09:45:30 -0700 Subject: [PATCH] add quick error report for wrap --- TODO.rst | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/TODO.rst b/TODO.rst index d1a5027..19b678a 100644 --- a/TODO.rst +++ b/TODO.rst @@ -1,6 +1,35 @@ TODO ==== +@tlog.wrap('critical', 'update campaign', verbose=True, inject_as='_act') +def update(self, _act, force=False): + +Resulted in: + +Traceback (most recent call last): +File "/home/mahmoud/virtualenvs/pacetrack/bin/pt", line 11, in +load_entry_point('pacetrack', 'console_scripts', 'pt')() +File "/home/mahmoud/hatnote/pacetrack/pacetrack/cli.py", line 131, in main +cmd.run() +File "/home/mahmoud/projects/face/face/command.py", line 403, in run +ret = inject(wrapped, kwargs) +File "/home/mahmoud/projects/face/face/sinter.py", line 59, in inject +return f(**kwargs) +File "", line 6, in next_ +File "/home/mahmoud/hatnote/pacetrack/pacetrack/cli.py", line 138, in mw_cli_log +return next_() +File "", line 4, in next_ +File "/home/mahmoud/hatnote/pacetrack/pacetrack/cli.py", line 89, in update +return update_all(campaign_ids=posargs_, force=force, jsub=jsub, args_=args_) +File "/home/mahmoud/hatnote/pacetrack/pacetrack/cli.py", line 73, in update_all +cur_pt = load_and_update_campaign(campaign_dir, force=force) +File "/home/mahmoud/hatnote/pacetrack/pacetrack/update.py", line 622, in load_and_update_campaign +ptc.update(force=force) +File "", line 2, in update +File "/home/mahmoud/virtualenvs/pacetrack/local/lib/python2.7/site-packages/lithoxyl/logger.py", line 298, in logged_func +return func_to_log(*a, **kw) +TypeError: update() got multiple values for keyword argument '_act' + dictutils ---------