fix(npm): Replace console logging with structured Smartlog in NPM registry and silence RubyGems helper error logging

This commit is contained in:
2025-11-25 23:25:26 +00:00
parent 35ff286169
commit da1cf8ddeb
5 changed files with 115 additions and 167 deletions

View File

@@ -455,9 +455,8 @@ export async function extractGemMetadata(gemData: Buffer): Promise<{
}
return null;
} catch (error) {
// Log error for debugging but return null gracefully
console.error('Failed to extract gem metadata:', error);
} catch (_error) {
// Error handled gracefully - return null and let caller handle missing metadata
return null;
}
}