From b55cda8e04726ad889ea7dc147543d3fcf05292e Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sat, 4 Apr 2020 12:48:16 +0700 Subject: [PATCH] don't fail interop tests when creating the qlog fails --- interop/utils/logging.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interop/utils/logging.go b/interop/utils/logging.go index 3e01395de..17ca742ef 100644 --- a/interop/utils/logging.go +++ b/interop/utils/logging.go @@ -39,7 +39,8 @@ func GetQLOGWriter() (func(connID []byte) io.WriteCloser, error) { path := fmt.Sprintf("%s/%x.qlog", strings.TrimRight(qlogDir, "/"), connID) f, err := os.Create(path) if err != nil { - log.Fatalf("Failed to create qlog file %s: %s", path, err.Error()) + log.Printf("Failed to create qlog file %s: %s", path, err.Error()) + return nil } return utils.NewBufferedWriteCloser(bufio.NewWriter(f), f) }, nil