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

@@ -20,7 +20,7 @@ func NewQlogger(logger io.Writer) func(context.Context, logging.Perspective, qui
if p == logging.PerspectiveClient {
role = "client"
}
filename := fmt.Sprintf("log_%x_%s.qlog", connID.Bytes(), role)
filename := fmt.Sprintf("log_%s_%s.qlog", connID, role)
fmt.Fprintf(logger, "Creating %s.\n", filename)
f, err := os.Create(filename)
if err != nil {