Mailinglist Archive: opensuse-buildservice (269 mails)

< Previous Next >
Re: [opensuse-buildservice] [PATCH] optionally show tracebacks upon (many) osc errors
  • From: Peter Poeml <poeml@xxxxxxx>
  • Date: Thu, 25 Sep 2008 16:39:40 +0200
  • Message-id: <20080925143940.GH6421@xxxxxxx>
On Fri, Sep 19, 2008 at 10:35:29PM +0200, Marcus Hüwe wrote:
On 2008-09-19 15:10:33 -0500, Michael Wolf wrote:

Attached is a patch that shows tracebacks upon many osc errors. It's
probably not complete.

The motivation is that when working on plugins (and, I assume, osc
itself), messages you get from the following

except AttributeError, e:
print >>sys.stderr, e
return 1

aren't very helpful, because there's little indication where the problem
lies. But when I add

show-python-tracebacks = true

to my ~/.oscrc, I can see exactly where and how I'm screwing up --
pretty useful.

I have only been running with this patch for about an hour, but it seems
to work pretty well so far.

osc already has a "--trace" option (you can also add "traceback=1" to your
~/.oscrc to activate it permanently). Additionally you may find the
"--debugger" and "--post-mortem" options useful.

I have added this as hint to
Hope this helps.

Contact: admin@xxxxxxxxxxxx (a.k.a. ftpadmin@xxxxxxxx)
#opensuse-mirrors on

SUSE LINUX Products GmbH
Research & Development
< Previous Next >