Remove duplicate INFO logger

This commit is contained in:
ionutboangiu
2021-09-06 14:39:36 +03:00
committed by Dan Christian Bogos
parent ede563c749
commit 8608541aa7
2 changed files with 1 additions and 3 deletions

View File

@@ -60,8 +60,6 @@ type EventExporterS struct {
// ListenAndServe keeps the service alive
func (eeS *EventExporterS) ListenAndServe(stopChan, cfgRld chan struct{}) {
utils.Logger.Info(fmt.Sprintf("<%s> starting <%s>",
utils.CoreS, utils.EEs))
for {
select {
case <-stopChan: // global exit

View File

@@ -66,7 +66,7 @@ func TestListenAndServe(t *testing.T) {
logBuf := new(bytes.Buffer)
log.SetOutput(logBuf)
eeS.ListenAndServe(stopChan, cfgRld)
logExpect := "[INFO] <CoreS> starting <EEs>"
logExpect := "[INFO] <EEs> reloading configuration internals."
if rcv := logBuf.String(); !strings.Contains(rcv, logExpect) {
t.Errorf("Expected %q but received %q", logExpect, rcv)
}