Skip to content

Commit 27bbce2

Browse files
committed
added debug entry
1 parent b42e7c8 commit 27bbce2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

probes/trafficsim.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"encoding/json"
66
"fmt"
7-
"log"
7+
log "github.com/sirupsen/logrus"
88
"math"
99
"net"
1010
"os"
@@ -451,6 +451,13 @@ func (ts *TrafficSim) reportStats(mtrProbe *Probe) {
451451
return
452452
}
453453

454+
marshal, err := json.Marshal(ts.Probe)
455+
if err != nil {
456+
return
457+
}
458+
459+
log.Warnf("someone made a fucky wucky? %s", marshal)
460+
454461
select {
455462
case ts.DataChan <- ProbeData{
456463
ProbeID: ts.Probe.ID,

0 commit comments

Comments
 (0)