Skip to content

Commit ed8515a

Browse files
committed
perf: set gin to release mode and remove redundant logs
Remove debug logs that are no longer needed and set Gin framework to release mode for better performance in production
1 parent a10cd60 commit ed8515a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
)
1515

1616
func main() {
17+
gin.SetMode(gin.ReleaseMode)
1718
// Load configuration
1819
cfg := config.Load()
1920

@@ -70,8 +71,6 @@ func main() {
7071
})
7172

7273
log.Printf("Serving %s on port %s\n", dirname, cfg.Port)
73-
log.Printf("Image serving: GET /<image-path>\n")
74-
log.Printf("API endpoints: /api/v1/*\n")
7574

7675
utils.FixAllFiles(cfg)
7776

0 commit comments

Comments
 (0)