summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-03 21:49:57 +0300
committerWolfy-J <[email protected]>2018-06-03 21:49:57 +0300
commited2719f7d4fc4ccde61e3a5c104a49b7e9e9ea5f (patch)
treea2a005a037cd1b1a959fc6a2323b4908d341a087 /service
parent7877e54547d1f8ca3b3431c6e9aa3cbd80af1403 (diff)
error handling
Diffstat (limited to 'service')
-rw-r--r--service/bus.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/bus.go b/service/bus.go
index 66a0847c..8bfb914c 100644
--- a/service/bus.go
+++ b/service/bus.go
@@ -92,7 +92,7 @@ func (b *Bus) Serve() {
defer b.wg.Done()
if err := s.Serve(); err != nil {
- logrus.Errorf("%s.start: ", s.Name(), err)
+ logrus.Errorf("%s.start: %s", s.Name(), err)
}
}()
}
@@ -117,7 +117,7 @@ func (b *Bus) Stop() {
for _, s := range b.enabled {
if err := s.Stop(); err != nil {
- logrus.Errorf("%s.stop: ", s.Name(), err)
+ logrus.Errorf("%s.stop: %s", s.Name(), err)
}
}