Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore missing entries in Release Metadata #582

Merged
merged 1 commit into from
Apr 18, 2022

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented Apr 17, 2022

Add various logging statements.
Demote excessive logging to debug level.
Refactor hard to read functions.
Add more typing information.

@fendor fendor requested a review from hasufell April 17, 2022 20:39
@fendor fendor force-pushed the fix/missing-release-metadata-entries branch from 74cc97b to 12741af Compare April 17, 2022 20:42
Comment on lines 789 to 798
metadata.forEach((supportedArch, hlsVersion) => {
const supportedOs = supportedArch.get(arch);
if (supportedOs) {
const ghcSupportedOnOs = supportedOs.get(platform);
if (ghcSupportedOnOs) {
logger.log(`HLS ${hlsVersion} compatible with GHC Versions: ${ghcSupportedOnOs}`);
newMap.set(hlsVersion, ghcSupportedOnOs);
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only tangible change. Everything else should be only logging statements.

Add various logging statements.
Demote excessive logging to debug level.
Refactor hard to read functions.
Add more typing information.
@fendor fendor force-pushed the fix/missing-release-metadata-entries branch from 12741af to fb90aa5 Compare April 17, 2022 20:51
window.showErrorMessage(e.message);
} else if (e instanceof Error) {
logger.error(`Internal Error: ${e.message}`);
window.showErrorMessage(e.message);
}
if (e instanceof Error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we log twice for Error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a "catch-all" for errors and always prints the stack trace of the caught exception.

@fendor fendor merged commit 515dd4e into haskell:master Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants