Sometimes a request not begin response until I hit CTRL+C on console. Lat time with the root (static page)
[GIN-debug] Listening and serving HTTP on :8888
[GIN] 2025/02/03 - 14:57:01 |←[97;42m 200 ←[0m| 63.3958ms | 192.168.100.124 |←[97;44m GET ←[0m "/"
[GIN] 2025/02/03 - 14:57:01 |←[90;47m 304 ←[0m| 0s | 192.168.100.124 |←[97;44m GET ←[0m "/css/main.css"
[GIN] 2025/02/03 - 14:57:01 |←[90;47m 304 ←[0m| 0s | 192.168.100.124 |←[97;44m GET ←[0m "/css/book.css"
[GIN] 2025/02/03 - 14:57:01 |←[90;47m 304 ←[0m| 528.5µs | 192.168.100.124 |←[97;44m GET ←[0m "/js/main.js"
After i get quick response. I use the github.com/gin-contrib/static for the static routing:
router := gin.Default()
router.Use(static.Serve("/", static.LocalFile("./web", false)))
router.Use(static.Serve("/cover", static.LocalFile(config.GetFilesystemConfig().CoverSource, false)))
router.Use(static.Serve("/books", static.LocalFile(config.GetFilesystemConfig().BookSource, false)))
router.GET("/api/book", api.GetAllBook)
router.GET("/api/book/:id", api.GetBook)
How can I turn on the detailed logging, or how can I avoid/solve the problem?
Thanx Ignis