fix(config): default to debug=false if not set (#1853)

This commit is contained in:
Ettore Di Giacinto
2024-03-18 18:59:39 +01:00
committed by GitHub
parent fa9e330fc6
commit 843f93e1ab

View File

@ -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
}
}