Browse Source

small telemetry fixes

main
forest 1 month ago
parent
commit
f4d9aabfdc
2 changed files with 8 additions and 2 deletions
  1. +1
    -1
      build-docker.sh
  2. +7
    -1
      main.go

+ 1
- 1
build-docker.sh View File

@ -1,6 +1,6 @@
#!/bin/bash -e
VERSION="0.1.10"
VERSION="0.1.13"
rm -rf dockerbuild || true
mkdir dockerbuild


+ 7
- 1
main.go View File

@ -440,9 +440,15 @@ func main() {
tyype = tyype[:30]
}
ip, hasIp := stream.Stream["ip"]
if hasIp {
stream.Stream["my_ip"] = ip
delete(stream.Stream, "ip")
}
stream.Values[i][1] = fmt.Sprintf(
"%-6s %-30s %-15s %-30s %s",
stream.Stream["delay"], account, stream.Stream["ip"], tyype, stream.Values[i][1],
stream.Stream["delay"], account, stream.Stream["my_ip"], tyype, stream.Values[i][1],
)
}
eventJSONBytes, err := json.Marshal(event.Submission)


Loading…
Cancel
Save