From 1aa000faa7c7158a8ada5df33bc2059eb6a543bb Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 3 Nov 2025 17:19:56 +0100 Subject: [PATCH] chore: display warning only when directory is present 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 88d49dcbebfb..34b175aa78c9 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