-
Notifications
You must be signed in to change notification settings - Fork 23
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
making originating origin header optional in unpack request functions #25
making originating origin header optional in unpack request functions #25
Conversation
shawn-hurley
commented
Mar 8, 2018
- platforms are not guaranteed to send this header
- logging error so that if a user is expecting the header they can still see what is wrong
* platforms are not guaranteed to send this header.
if err != nil { | ||
return nil, err | ||
glog.Infof("Unable to retrieve originating identity - %v", err) |
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 just seems to sort of duplicate the error msg, I would just log the error msg instead, see:
I0308 14:54:32.912222 1 apisurface.go:126] Unable to retrieve originating identity - unable to find originating identity
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.
retrieveOriginatingIdentity
can return 2 different errors, I don't see a problem with the log. It is duplicated under one instance, but not another. And if someone ever changes the method to return a different error it might be harder to track down. So the duplicate message doesn't bother me.
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.
@jmrodri Fair point, better to duplicate then to having to track down where the error originated.
LGTM |
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 this fix! 💯 |
Rename to osb-starter-pack