This commit is contained in:
oneao committed 2025-08-13 14:51:19 +08:00
1 parent ed8bee3d77
commit 7552670e4a
23 files changed
+380 -154

No files matched your search

@@ -12,8 +12,6 @@ func Logger() router.HandlerFunc {
c.Next()
elapsed := time.Since(start)
// 即使业务中断,这里也能执行,打印耗时
path := c.Request.URL.Path
method := c.Request.Method
println(method, path, "耗时:", elapsed.String())
println("耗时:", elapsed.String())
}
}