From 8be8cafd00cf6f58ae1030de2811e4febff1e0b1 Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Wed, 3 Jan 2024 18:26:10 +0100 Subject: [PATCH] force release mode in GIN --- machinery/src/routers/http/Server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/machinery/src/routers/http/Server.go b/machinery/src/routers/http/Server.go index f5bfb0d..7e9add6 100644 --- a/machinery/src/routers/http/Server.go +++ b/machinery/src/routers/http/Server.go @@ -41,6 +41,9 @@ import ( func StartServer(configDirectory string, configuration *models.Configuration, communication *models.Communication, captureDevice *capture.Capture) { + // Set release mode + gin.SetMode(gin.ReleaseMode) + // Initialize REST API r := gin.Default()