Skip to content
Lucas Clemente edited this page Jun 7, 2017 · 20 revisions

Running it on a server

It is necessary to bind it correctly:

go run example/main.go -bind "0.0.0.0:6121"

Watching

ginkgo watch -r -skipPackage integrationtests -skipMeasurements

Enable logging in a test

Launch with env QUIC_GO_LOG_LEVEL=x set, with x:

  • 1 for Debug
  • 2 for Info
  • 3 for Error
  • 4 for no logging (default)

To write the logs to a file:

f, err := os.Create("./log.txt")
defer f.Close()
if err != nil {
	panic(err)
}

log.SetOutput(f)

or with a buffered Writer:

f, err := os.Create("./log.txt")
defer f.Close()
if err != nil {
	panic(err)
}
writer := bufio.NewWriter(f)

log.SetOutput(writer)