Skip to content
Snippets Groups Projects
Commit 96e7109d authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

improved the logging on send

parent 5aab80c0
No related branches found
No related tags found
1 merge request!53Release
...@@ -194,7 +194,7 @@ var rootCmd = &cobra.Command{ ...@@ -194,7 +194,7 @@ var rootCmd = &cobra.Command{
go func() { go func() {
//sendDelay := time.Duration(viper.GetUint("sendDelay")) //sendDelay := time.Duration(viper.GetUint("sendDelay"))
for i := 0; i < sendCnt; i++ { for i := 0; i < sendCnt; i++ {
go func() { go func(i int) {
defer wg.Done() defer wg.Done()
fmt.Printf("Sending to %s: %s\n", recipientID, msgBody) fmt.Printf("Sending to %s: %s\n", recipientID, msgBody)
var roundIDs []id.Round var roundIDs []id.Round
...@@ -225,9 +225,9 @@ var rootCmd = &cobra.Command{ ...@@ -225,9 +225,9 @@ var rootCmd = &cobra.Command{
} }
if err != nil { if err != nil {
jww.FATAL.Panicf("%+v", err) jww.FATAL.Panicf("Message sending for send %d failed: %+v", i, err)
} }
}() }(i)
} }
}() }()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment