moonraker: log exceptions when a component_init fails
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
b70254feed
commit
c89a9152b5
|
@ -205,6 +205,7 @@ class Server:
|
|||
if ret is not None:
|
||||
await ret
|
||||
except Exception as e:
|
||||
logging.exception(f"Component [{name}] failed post init")
|
||||
self.add_warning(f"Component '{name}' failed to load with "
|
||||
f"error: {e}")
|
||||
self.set_failed_component(name)
|
||||
|
|
Loading…
Reference in New Issue