fix serialization of connection ID in filenames of qlog files (#4170)

This commit is contained in:
Marten Seemann
2023-11-17 07:06:42 +01:00
committed by GitHub
parent 427f53328b
commit 96ab48eb7d
5 changed files with 5 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ func NewQLOGConnectionTracer(_ context.Context, p logging.Perspective, connID qu
log.Fatalf("failed to create qlog dir %s: %v", qlogDir, err)
}
}
path := fmt.Sprintf("%s/%x.qlog", strings.TrimRight(qlogDir, "/"), connID)
path := fmt.Sprintf("%s/%s.qlog", strings.TrimRight(qlogDir, "/"), connID)
f, err := os.Create(path)
if err != nil {
log.Printf("Failed to create qlog file %s: %s", path, err.Error())