panel icon indicating copy to clipboard operation
panel copied to clipboard

Errors not logged when nthreads is enabled

Open maximlt opened this issue 2 years ago • 3 comments

Errors raised in callbacks dispatched with --num-threads enabled are not logged in the console.

# app.py
import panel as pn

def cb(e):
    raise ValueError('Not logged')

b = pn.widgets.Button(name='Action')
b.on_click(cb)

b.servable()

served with panel serve app.py --num-threads 2

maximlt avatar May 29 '22 23:05 maximlt

Hope this will get attention, debugging without error logs is a real pain.

TheoMathurin avatar Sep 21 '22 15:09 TheoMathurin

Any debugging help would be greatly appreciated!

jbednar avatar Sep 22 '22 16:09 jbednar

Ok, right now I don't know how to do so, but I will give it a try when I get a chance.

TheoMathurin avatar Sep 22 '22 16:09 TheoMathurin

Seems to be getting logged just fine with 0.14.0rc2. Could someone confirm?

philippjfr avatar Sep 28 '22 08:09 philippjfr

I'm still not seeing anything on master.

hoxbro avatar Sep 28 '22 08:09 hoxbro