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

controller: add logs to catch some weird issues #38

Merged
merged 1 commit into from
Jun 8, 2018
Merged

Conversation

fatih
Copy link
Contributor

@fatih fatih commented Jun 8, 2018

The API might return 422 for various kind of situations. However we
don't return an error and there is a possibility an attach/dettach could
fail. Let us log the error and response to see if there is anything we
can do fix stuff on our side.

ll.WithFields(logrus.Fields{
"error": err,
"resp": resp,
}).Warn("assuming volume is dettached already")
Copy link

Choose a reason for hiding this comment

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

detached

@aybabtme
Copy link

aybabtme commented Jun 8, 2018

:shipit: on 🍏

The API might return 422 for various kind of situations. However we
don't return an error and there is a possibility an attach/dettach could
fail. Let us log the error and response to see if there is anything we
can do fix stuff on our side.
@fatih fatih merged commit 76b8455 into master Jun 8, 2018
@fatih fatih deleted the small-improvements branch August 3, 2018 14:55
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