Mailinglist Archive: opensuse-buildservice (269 mails)

< Previous Next >
Re: [opensuse-buildservice] [PATCH] optionally show tracebacks upon (many) osc errors
  • From: Marcus Hüwe <suse-tux@xxxxxx>
  • Date: Fri, 19 Sep 2008 22:35:29 +0200
  • Message-id: <20080919203529.GD3126@xxxxxxxxxxxxxxxxxxx>
On 2008-09-19 15:10:33 -0500, Michael Wolf wrote:
Yo

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.


Marcus
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References