Skip to content
Snippets Groups Projects
Commit b2a43baf authored by Jonah Husson's avatar Jonah Husson
Browse files

Fix format args with round inputs

parent c971412b
No related branches found
No related tags found
5 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!370Full round obj,!369Full round obj,!340Project/channels
...@@ -217,7 +217,7 @@ var broadcastCmd = &cobra.Command{ ...@@ -217,7 +217,7 @@ var broadcastCmd = &cobra.Command{
continue continue
} }
fmt.Printf("Sent symmetric broadcast message: %s", symmetric) fmt.Printf("Sent symmetric broadcast message: %s", symmetric)
jww.INFO.Printf("Sent symmetric broadcast message to %s over round %d", eid, rid) jww.INFO.Printf("Sent symmetric broadcast message to %s over round %d", eid, rid.ID)
} }
/* Send asymmetric broadcast */ /* Send asymmetric broadcast */
...@@ -237,7 +237,7 @@ var broadcastCmd = &cobra.Command{ ...@@ -237,7 +237,7 @@ var broadcastCmd = &cobra.Command{
continue continue
} }
fmt.Printf("Sent asymmetric broadcast message: %s", asymmetric) fmt.Printf("Sent asymmetric broadcast message: %s", asymmetric)
jww.INFO.Printf("Sent asymmetric broadcast message to %s over round %d", eid, rid) jww.INFO.Printf("Sent asymmetric broadcast message to %s over round %d", eid, rid.ID)
} }
wg.Done() wg.Done()
......
...@@ -237,7 +237,7 @@ func sendGroup(groupIdString string, msg []byte, gm groupChat.GroupChat) { ...@@ -237,7 +237,7 @@ func sendGroup(groupIdString string, msg []byte, gm groupChat.GroupChat) {
} }
jww.INFO.Printf("[GC] Sent to group %s on round %d at %s", jww.INFO.Printf("[GC] Sent to group %s on round %d at %s",
groupID, rid, timestamp) groupID, rid.ID, timestamp)
fmt.Printf("Sent message %q to group.\n", msg) fmt.Printf("Sent message %q to group.\n", msg)
} }
......
...@@ -104,7 +104,7 @@ func (r *Request) Respond(payload []byte, cMixParams cmix.CMIXParams, ...@@ -104,7 +104,7 @@ func (r *Request) Respond(payload []byte, cMixParams cmix.CMIXParams,
jww.DEBUG.Printf("[SU] Sent single-use response cMix message part "+ jww.DEBUG.Printf("[SU] Sent single-use response cMix message part "+
"%d of %d on round %d to %s (eph ID %d) (%s).", "%d of %d on round %d to %s (eph ID %d) (%s).",
i, len(parts), round, r.sender, ephID.Int64(), r.tag) i, len(parts), round.ID, r.sender, ephID.Int64(), r.tag)
rounds[i] = round.ID rounds[i] = round.ID
r.net.GetInstance().GetRoundEvents().AddRoundEventChan( r.net.GetInstance().GetRoundEvents().AddRoundEventChan(
......
...@@ -211,7 +211,7 @@ func TransmitRequest(recipient contact.Contact, tag string, payload []byte, ...@@ -211,7 +211,7 @@ func TransmitRequest(recipient contact.Contact, tag string, payload []byte,
jww.DEBUG.Printf("[SU] Sent single-use request cMix message part "+ jww.DEBUG.Printf("[SU] Sent single-use request cMix message part "+
"%d of %d on round %d to %s (eph ID %d) (%s).", "%d of %d on round %d to %s (eph ID %d) (%s).",
0, len(parts)+1, rid, recipient.ID, ephID.Int64(), tag) 0, len(parts)+1, rid.ID, recipient.ID, ephID.Int64(), tag)
var wg sync.WaitGroup var wg sync.WaitGroup
wg.Add(len(parts)) wg.Add(len(parts))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment