@@ -44,7 +44,7 @@ func providerCacheFileData() string {
4444}
4545
4646func saveProvidersInCache(path string, providers []catwalk.Provider) error {
47− slog.Info("Caching provider data")
47+ slog.Info("Saving cached provider data", "path", path)
4848 if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
4949 return fmt.Errorf("failed to create directory for provider cache: %w", err)
5050 }
@@ -94,13 +94,13 @@ func loadProviders(client ProviderClient, path string) (providerList []catwalk.P
9494 // if cache is not stale, load from it
9595 stale, exists := isCacheStale(path)
9696 if !stale {
97− slog.Info("Using cached provider data")
97+ slog.Info("Using cached provider data", "path", path)
9898 providerList, err = loadProvidersFromCache(path)
9999 if len(providerList) > 0 && err == nil {
100100 go func() {
101101 slog.Info("Updating provider cache in background")
102102 updated, uerr := client.GetProviders()
103− if len(updated) == 0 && uerr == nil {
103+ if len(updated) > 0 && uerr == nil {
104104 _ = saveProvidersInCache(path, updated)
105105 }
106106 }()