use_thread eats logs?

When an exception is thrown in a function run from use_thread it seems I don't get any log (logging using structlog), I see there is an error state in the use_thread is there a way to get logging from that?
2 Replies
MaartenBreddels
MaartenBreddels10mo ago
Yes, you can log/raise from result.error, but looking at https://github.com/widgetti/solara/blob/8dacf8f95f6442d36186c6cf924a2c8ba1ec006a/solara/hooks/use_thread.py#L105C25-L105C44 we do call the logger, although we should call it with a string, not an exception! maybe that is actually an error
Monty Python
Monty Python10mo ago
solara/hooks/use_thread.py line 105
logger.exception(e)
logger.exception(e)
Want results from more Discord servers?
Add your server