summaryrefslogtreecommitdiff
path: root/service/container.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-10 14:38:50 +0300
committerWolfy-J <[email protected]>2018-06-10 14:38:50 +0300
commit025887da77e15cd5e80d4182bf7095dac6cab12c (patch)
treea8188a5dc3d7118acc803cd71d07bb69ac81abb2 /service/container.go
parentde138fe87ac3e1dafcd6dcedaa14ca53a4dac511 (diff)
more verbosity
Diffstat (limited to 'service/container.go')
-rw-r--r--service/container.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/service/container.go b/service/container.go
index 88d9ef41..bf712092 100644
--- a/service/container.go
+++ b/service/container.go
@@ -151,11 +151,13 @@ func (c *container) Serve() error {
continue
}
+ c.log.Debugf("%s.service: started", e.name)
go func(e *entry) {
e.setStatus(StatusServing)
defer e.setStatus(StatusStopped)
if err := e.svc.Serve(); err != nil {
+ c.log.Errorf("%s.service: %s", e.name, err)
done <- errors.Wrap(err, fmt.Sprintf("%s.service", e.name))
}
}(e)
@@ -184,6 +186,7 @@ func (c *container) Stop() {
if e.hasStatus(StatusServing) {
e.svc.Stop()
e.setStatus(StatusStopped)
+ c.log.Debugf("%s.service: stopped", e.name)
}
}
}