update: X-Trace-Id

This commit is contained in:
loveuer
2024-07-17 23:05:23 +08:00
parent 116d5b13f8
commit 459e3d9c09
10 changed files with 60 additions and 68 deletions

View File

@ -33,7 +33,7 @@ func NewFront(ff *embed.FS, basePath string) nf.HandlerFunc {
)
if bs, err = ff.ReadFile(basePath + path); err != nil {
log.Debug(c, "embed read file [%s]%s err: %v", basePath, path, err)
log.Debug(c.Context(), "embed read file [%s]%s err: %v", basePath, path, err)
c.Set("Content-Type", "text/html")
_, err = c.Write(indexBytes)
return err