internal/fetch: log source info error at Info level
If getting the source info fails, log at Info rather than Error
to avoid cluttering the logs with non-serious errors.
Fixes b/154274456.
CI-Result: Cloud Build
@@ -132,7 +132,7 @@ func processZipFile(ctx context.Context, modulePath string, versionType version.
sourceInfo, err := source.ModuleInfo(ctx, sourceClient, modulePath, resolvedVersion)
if err != nil {
- log.Error(ctx, err)
+ log.Infof(ctx, "error getting source info: %v", err)
}
readmes, err := extractReadmesFromZip(modulePath, resolvedVersion, zipReader)
if err != nil {
