Jason Tackaberry wrote:
> On Sun, 2008-01-13 at 19:06 +0100, Tanja wrote:
>> It seems that error messages are silently dropped when the error occures in 
>> the decorated function.
>> Where are those messages going? Is it possible to make this more verbose? It 
>> is very irritating to 
>> debug without any output from the crash...
>
> This may be something specific to freevo 1.x that Duncan can comment on.
> Because by default the exception does get logged.
>
> In fact, it gets logged twice when there is no callback connected to
> exception_handler.  Dischi, should we suppress the log.exception in
> yieldfunc.py:229 and leave it to async.py:163?  This way properly
> handled exceptions don't get logged.
>
> Consider this test:
>
>         import kaa
>         
>         @kaa.yield_execution()
>         def func():
>             for i in range(10):
>                 print i
>                 if i == 9:
>                     raise ValueError, "test"
>                 yield kaa.YieldContinue
>                 
>         func()
>         kaa.main.run()
>         
> This does log the exception.  (Twice, as I said.)

Fixed.

BTW, if you look at the code:

|        except Exception, e:
|            e._exc_info = sys.exc_info()

Isn't that a good way to still keep the old exception interface (only
one paramater) and also add more info?

Dischi

-- 
I just found out that the brain is like a computer.
If that's true, then there really aren't any stupid people.
Just people running Windows. 

Attachment: pgps9kXjTbALk.pgp
Description: PGP signature

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to