-
Notifications
You must be signed in to change notification settings - Fork 5
Small refactor #11
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
Small refactor #11
Conversation
Fix the Google Cloud logger types as well.
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.
Overall looks great! Agreed, might have been easier separate PRs but no worries!
A couple questions. Only major thing is adding a step for running tests in CI
projectId, | ||
}); | ||
const log = logging.log(logId) | ||
const convertSeverity = (severity: Level): gcl.protos.google.logging.type.LogSeverity => { |
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 do this? Or what is this rather?
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.
Our logger uses 0-4 to represent trace, debug, info, warn, and error, but Google Cloud uses something like 100, 200, 400, 500 (and has no trace level). So we need to convert the level to the right number.
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.
I should also note logging to Google Cloud is optional.
Uhhh tests are failing in CI, I'll take a look tomorrow. |
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.
🚀
I was too curious to wait until tomorrow. All fixed up. |
Oh huh there were actually existing test files. They just use the logger though and don't actually test anything. 😛 I'll probably just remove them. |
I wanted to add AMD support to experiment with migrating away from Parcel but ended up taking some time to make some improvements. Check out the individual commits for more information (should really be separate PRs probably).