moonraker: log exceptions when a component_init fails

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-11-26 14:39:01 -05:00
parent b70254feed
commit c89a9152b5
1 changed files with 1 additions and 0 deletions

View File

@ -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)