server/server.go: make successful garbage collection log at info level

This commit is contained in:
Lucas Serven 2017-04-04 09:47:53 -07:00
parent f4865a354c
commit f3d9bd5008
No known key found for this signature in database
GPG Key ID: 586FEAF680DA74AD

View File

@ -355,7 +355,7 @@ func (s *Server) startGarbageCollection(ctx context.Context, frequency time.Dura
if r, err := s.storage.GarbageCollect(now()); err != nil {
s.logger.Errorf("garbage collection failed: %v", err)
} else if r.AuthRequests > 0 || r.AuthCodes > 0 {
s.logger.Errorf("garbage collection run, delete auth requests=%d, auth codes=%d", r.AuthRequests, r.AuthCodes)
s.logger.Infof("garbage collection run, delete auth requests=%d, auth codes=%d", r.AuthRequests, r.AuthCodes)
}
}
}