don't fail interop tests when creating the qlog fails

This commit is contained in:
Marten Seemann
2020-04-04 12:48:16 +07:00
parent 383dab3ce7
commit b55cda8e04

View File

@@ -39,7 +39,8 @@ func GetQLOGWriter() (func(connID []byte) io.WriteCloser, error) {
path := fmt.Sprintf("%s/%x.qlog", strings.TrimRight(qlogDir, "/"), connID) path := fmt.Sprintf("%s/%x.qlog", strings.TrimRight(qlogDir, "/"), connID)
f, err := os.Create(path) f, err := os.Create(path)
if err != nil { 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) return utils.NewBufferedWriteCloser(bufio.NewWriter(f), f)
}, nil }, nil