print finished time of render web page

This commit is contained in:
r0n1n7an 2024-05-06 15:22:15 +08:00
parent e80aa83dbc
commit 742ddf4caa
3 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -86,6 +86,7 @@ func eChart(w http.ResponseWriter, r *http.Request) {
if r.RequestURI == "/favicon.ico" { if r.RequestURI == "/favicon.ico" {
return return
} }
fmt.Println()
log.Printf("[MSG] Received Request: %s, %s\r\n", r.RemoteAddr, r.RequestURI) log.Printf("[MSG] Received Request: %s, %s\r\n", r.RemoteAddr, r.RequestURI)
defer r.Body.Close() defer r.Body.Close()
@ -347,4 +348,5 @@ func eChart(w http.ResponseWriter, r *http.Request) {
// ), // ),
) )
chart.Render(w) chart.Render(w)
log.Println("[MSG] Finished Render Web Page.")
} }

2
go.mod
View File

@ -1,6 +1,6 @@
module LineChart module LineChart
go 1.21.1 go 1.21.0
require ( require (
github.com/go-echarts/go-echarts/v2 v2.3.3 github.com/go-echarts/go-echarts/v2 v2.3.3