Skip to content

The only tool you need to know what is happening and how to fix it.

fix: gin should run in release mode when used as a library (no logging)

ddux7bec6616dc8b
diff --git a/backend/cmd/run.go b/backend/cmd/run.go
index 92527499..28e0d095 100644
--- a/backend/cmd/run.go
+++ b/backend/cmd/run.go
@@ -59,6 +59,7 @@ func Run(opts ...Option) {
o.serverURL = fmt.Sprintf("http://localhost:%d", port)
}
cfg.AppBaseURL = o.serverURL
+ gin.SetMode(gin.ReleaseMode)
}
config.Init(cfg)