lru
This commit is contained in:
@@ -56,7 +56,8 @@ func LogComponent(startTime int64, r *http.Request) {
|
||||
endTime := fmt.Sprintf(color, ms)
|
||||
method := fmt.Sprintf("\033[1;32m%s\033[0m", r.Method) // 綠色加重
|
||||
url := fmt.Sprintf("\033[1;34m%s\033[0m", r.URL) // 藍色加重
|
||||
log.Println(method, url, endTime)
|
||||
|
||||
log.Println(method, url, endTime, r.Header.Get("X-Forwarded-For"))
|
||||
}
|
||||
|
||||
type Image struct {
|
||||
|
||||
Reference in New Issue
Block a user