style(api_handler): adjust log format for better readability

This commit is contained in:
wood chen 2024-11-03 08:25:31 +08:00
parent 402c6cf82d
commit 973fe5c8de

View File

@ -80,7 +80,7 @@ func HandleAPIRequest(w http.ResponseWriter, r *http.Request) {
duration := time.Since(start)
log.Printf(" %12s | %15s | %-6s | %-50s | %s | %-50s",
log.Printf(" %-12s | %-15s | %-6s | %-20s | %-20s | %-50s",
duration, // 持续时间
realIP, // 真实IP
r.Method, // HTTP方法