mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Remove duplicate INFO logger
This commit is contained in:
committed by
Dan Christian Bogos
parent
ede563c749
commit
8608541aa7
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user