func (s *Server) appendReportingService(c reporting.Config) { if c.Enabled { l := s.LogService.NewLogger("[reporting] ", log.LstdFlags) srv := reporting.NewService(c, l) s.Services = append(s.Services, srv) } }
func (s *Server) appendReportingService() { c := s.config.Reporting if c.Enabled { l := s.LogService.NewLogger("[reporting] ", log.LstdFlags) srv := reporting.NewService(c, l) s.AppendService("reporting", srv) } }