From d424a27fa24cb78793d72dfbdfe2be958a4c90a3 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 3 Nov 2025 18:56:47 +0100 Subject: [PATCH] chore: display warning only when directory is present (#7050) Signed-off-by: Ettore Di Giacinto --- core/gallery/backends.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/gallery/backends.go b/core/gallery/backends.go index 88d49dcbe..34b175aa7 100644 --- a/core/gallery/backends.go +++ b/core/gallery/backends.go @@ -4,6 +4,7 @@ package gallery import ( "encoding/json" + "errors" "fmt" "os" "path/filepath" @@ -310,8 +311,10 @@ func ListSystemBackends(systemState *system.SystemState) (SystemBackends, error) } } } - } else { + } else if !errors.Is(err, os.ErrNotExist) { log.Warn().Err(err).Msg("Failed to read system backends, proceeding with user-managed backends") + } else if errors.Is(err, os.ErrNotExist) { + log.Debug().Msg("No system backends found") } // User-managed backends and alias collection