From 973fe5c8de945bfef4100049d1df123a70b2c530 Mon Sep 17 00:00:00 2001 From: wood chen Date: Sun, 3 Nov 2024 08:25:31 +0800 Subject: [PATCH] style(api_handler): adjust log format for better readability --- handlers/api_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/api_handler.go b/handlers/api_handler.go index 5fd578a..4905e23 100644 --- a/handlers/api_handler.go +++ b/handlers/api_handler.go @@ -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方法