From 4143a4dbe0aefb542523170a23d35bcbc8d1de94 Mon Sep 17 00:00:00 2001 From: Kush Trivedi Date: Fri, 18 Sep 2020 09:18:02 +0530 Subject: [PATCH] nighthawk run success Signed-off-by: Kush Trivedi --- apinighthawk/nighthawk.go | 2 +- cmd/main.go | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/apinighthawk/nighthawk.go b/apinighthawk/nighthawk.go index 07f389f5..e7f6e85f 100644 --- a/apinighthawk/nighthawk.go +++ b/apinighthawk/nighthawk.go @@ -52,7 +52,7 @@ func NighthawkRun(config *NighthawkConfig) ([]byte, error) { "--concurrency "+c, "--duration "+duration, rURL.String(), - "--output-format fortio").Output() + "--output-format experimental_fortio_pedantic").Output() if err != nil { msg := "Unable to run load-test" diff --git a/cmd/main.go b/cmd/main.go index 23eb34f5..dc2a9e3d 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -1,9 +1,8 @@ package main import ( - "fmt" - "os" "encoding/json" + "os" "github.com/layer5io/nighthawk-go/apinighthawk" // "fortio.org/fortio/fhttp" @@ -19,8 +18,8 @@ func init() { // Output to stdout instead of the default stderr log.SetOutput(os.Stdout) - // Output to only for logs above warn level - log.SetLevel(log.WarnLevel) + // // Output to only for logs above warn level + // log.SetLevel(log.WarnLevel) } func main() { // Duration in seconds nighthawk default format @@ -39,8 +38,8 @@ func main() { log.Fatal(err) } - fmt.Print(string(result)) - // res1 := string(result) + // fmt.Print(string(result)) + // // res1 := string(result) var result1 periodic.RunnerResults // var bd []byte @@ -66,7 +65,6 @@ func main() { log.Fatal(err) } - log.Debugf("Mapped version of the test: %+#v", resultsMap) - + log.Infof("Mapped version of the test: %+#v", resultsMap) }