This commit is contained in:
2023-04-13 18:58:21 +08:00
parent 7602a0419a
commit 07a5129071
2 changed files with 6 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ func stringToInt(str string, defaultValue int) int {
func LogComponent(startTime int64, r *http.Request) {
endTime := fmt.Sprintf("%dms", (time.Now().UnixNano()-startTime)/1000000)
log.Println(r.Method, r.URL.Path, endTime)
log.Println(r.Method, r.URL, endTime)
}
type User struct {