mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
log out errors running modules
This commit is contained in:
@@ -159,7 +159,10 @@ func (r *Router) Start(ctx context.Context) {
|
|||||||
|
|
||||||
for moduleId := range r.ModuleInstances {
|
for moduleId := range r.ModuleInstances {
|
||||||
// TODO(jwetzell): handle module run errors
|
// TODO(jwetzell): handle module run errors
|
||||||
r.startModule(contextWithRouter, moduleId)
|
err := r.startModule(contextWithRouter, moduleId)
|
||||||
|
if err != nil {
|
||||||
|
r.logger.Error("error starting module", "moduleId", moduleId, "error", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
<-r.Context.Done()
|
<-r.Context.Done()
|
||||||
r.logger.Debug("waiting for modules to exit")
|
r.logger.Debug("waiting for modules to exit")
|
||||||
|
|||||||
Reference in New Issue
Block a user