From 843f93e1ab0378dda67b77cb9c80746aba70b4c5 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 18 Mar 2024 18:59:39 +0100 Subject: [PATCH] fix(config): default to debug=false if not set (#1853) --- core/config/backend_config.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/config/backend_config.go b/core/config/backend_config.go index 2adfeee5..daaf0257 100644 --- a/core/config/backend_config.go +++ b/core/config/backend_config.go @@ -276,8 +276,12 @@ func (cfg *BackendConfig) SetDefaults(debug bool, threads, ctx int, f16 bool) { cfg.F16 = &f16 } + if cfg.Debug == nil { + cfg.Debug = &falseV + } + if debug { - cfg.Debug = &debug + cfg.Debug = &trueV } }