From 9364accf1fcf5a2e7c1a4ee6a6d1b301516ed594 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 3 Feb 2016 02:04:00 -0500 Subject: [PATCH] service: start/stop logs are info, ignored are debug --- service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service.go b/service.go index 7ecb1687..0ea69e23 100644 --- a/service.go +++ b/service.go @@ -84,14 +84,14 @@ func (bs *BaseService) Start() (bool, error) { return false, nil } else { if bs.log != nil { - bs.log.Notice(Fmt("Starting %v", bs.name), "impl", bs.impl) + bs.log.Info(Fmt("Starting %v", bs.name), "impl", bs.impl) } } err := bs.impl.OnStart() return true, err } else { if bs.log != nil { - bs.log.Info(Fmt("Not starting %v -- already started", bs.name), "impl", bs.impl) + bs.log.Debug(Fmt("Not starting %v -- already started", bs.name), "impl", bs.impl) } return false, nil } @@ -104,7 +104,7 @@ func (bs *BaseService) OnStart() error { return nil } func (bs *BaseService) Stop() bool { if atomic.CompareAndSwapUint32(&bs.stopped, 0, 1) { if bs.log != nil { - bs.log.Notice(Fmt("Stopping %v", bs.name), "impl", bs.impl) + bs.log.Info(Fmt("Stopping %v", bs.name), "impl", bs.impl) } bs.impl.OnStop() return true