-
Notifications
You must be signed in to change notification settings - Fork 21
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
Migrate logging to use RPC Logging methods #36
Conversation
+ improve log messages
/update-branch |
* change handleAuthorizeInADD function to return 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.
I've noticed that there are a couple of uses of fmt.Print*
e.g. https://github.com/mattermost/mattermost-plugin-skype4business/blob/master/server/plugin.go#L113. Would you also please migrate them?
server/plugin.go
Outdated
err := p.handleAuthorizeInADD(w, r) | ||
if err != nil { | ||
p.API.LogWarn(err.Error()) | ||
http.Error(w, err.Error(), http.StatusBadRequest) |
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.
💯
…d handleRegisterMeetingFromOnlineVersion to return error
I've already migrated these uses. Your link redirects to branch master :) |
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.
One non blocking question
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.
Thank you for the contribution! LGTM, just two changes.
Codecov Report
@@ Coverage Diff @@
## master #36 +/- ##
==========================================
+ Coverage 60.00% 63.40% +3.40%
==========================================
Files 4 4
Lines 545 511 -34
==========================================
- Hits 327 324 -3
+ Misses 167 136 -31
Partials 51 51
Continue to review full report at Codecov.
|
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.
one nit pick
* change handleProfileImage function to return error and int
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.
LGTM! Thank you for the contribution! 🎉
@DHaussermann See mattermost-community/mattermost-plugin-autolink#102 (comment) for testing steps |
@DHaussermann Or maybe you could test this as part of the release testing |
The last build broken because |
Skipping QA review per https://community.mattermost.com/core/pl/k1js57wa8tnr5qtrzturas7txh |
Summary
This PR migrates logging to use RPC Logging methods and improves log messages.
Ticket Link
Fixes #32