-
Notifications
You must be signed in to change notification settings - Fork 90
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
Ignore missing entries in Release Metadata #582
Conversation
74cc97b
to
12741af
Compare
src/hlsBinaries.ts
Outdated
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); | ||
} | ||
} |
There was a problem hiding this comment.
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.
12741af
to
fb90aa5
Compare
window.showErrorMessage(e.message); | ||
} else if (e instanceof Error) { | ||
logger.error(`Internal Error: ${e.message}`); | ||
window.showErrorMessage(e.message); | ||
} | ||
if (e instanceof Error) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Add various logging statements.
Demote excessive logging to debug level.
Refactor hard to read functions.
Add more typing information.