Logs misbehaving

When running the following code the log goes out to Info level instead of error.

import logging
l = logging.getLogger('je')
import panel as pn
pn.extension()

def log(event):
    l.error("Error!")

button = pn.widgets.Button(name='click')
button.on_click(log)

button

image