on main help sign in
fix(catwalk): improve fetch logging message

We recently changed the behavior to always fetch from Catwalk. No need to tell cache is stale. Cache is only used when using offline mode.

commitfc128be5fcc377e526ebc328b40c5d586d0eb910 authorAndrey Nering <andreynering@users.noreply.github.com> dateMon 3 Nov 2025, 13:56 (1 year ago) parent3398577
1 file changed+2−2
internal/config/provider.go+2−2
internal/config/provider.go+2−2
@@ -49,7 +49,7 @@ func providerCacheFileData() string {
4949}
5050
5151func saveProvidersInCache(path string, providers []catwalk.Provider) error {
52− slog.Info("Saving cached provider data", "path", path)
52+ slog.Info("Saving provider data to disk", "path", path)
5353 if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
5454 return fmt.Errorf("failed to create directory for provider cache: %w", err)
5555 }
@@ -158,7 +158,7 @@ func loadProviders(autoUpdateDisabled bool, client ProviderClient, path string)
158158 return providers, nil
159159
160160 default:
161− slog.Info("Cache is not available or is stale. Fetching providers from Catwalk.", "path", path)
161+ slog.Info("Fetching providers from Catwalk.", "path", path)
162162
163163 providers, err := catwalkGetAndSave()
164164 if err != nil {