Skip to content
Snippets Groups Projects
Commit 77efe674 authored by benjamin's avatar benjamin
Browse files

added log on dummy message thread start

parent be4089d7
No related branches found
No related tags found
1 merge request!510Release
......@@ -12,6 +12,7 @@ package dummy
import (
"github.com/pkg/errors"
jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/v4/cmix"
"gitlab.com/elixxir/client/v4/stoppable"
"gitlab.com/elixxir/client/v4/storage"
......@@ -94,7 +95,6 @@ type Manager struct {
func NewManager(maxNumMessages int,
avgSendDelta, randomRange time.Duration,
net *xxdk.Cmix) *Manager {
return newManager(maxNumMessages, avgSendDelta, randomRange, net.GetCmix(),
net.GetStorage(), net.GetRng())
}
......@@ -122,7 +122,9 @@ func newManager(maxNumMessages int, avgSendDelta, randomRange time.Duration,
func (m *Manager) StartDummyTraffic() (stoppable.Stoppable, error) {
stop := stoppable.NewSingle(dummyTrafficStoppableName)
go m.sendThread(stop)
jww.INFO.Printf("Dummy Traffic loop started {maxNumMessages: %d, "+
"avgSendDelta: %s, randomRange: %s}", m.maxNumMessages, m.avgSendDelta,
m.randomRange)
return stop, nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment