Skip to content

Commit

Permalink
Log status code in case of HTTP error
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomini committed Jan 11, 2023
1 parent de15833 commit 562b24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vomsimporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def link_certificate(self, iam_user, cert):
cert, iam_user['id'], e.response.content)
else:
logging.error("Error linking certificate: %s to account %s: %s",
cert, iam_user['id'], e.response.content)
cert, iam_user['id'], e.response.status_code)

def set_user_attribute(self, iam_user, attribute):
url = "%s/iam/account/%s/attributes" % (self._base_url(), iam_user['id'])
Expand Down

0 comments on commit 562b24b

Please sign in to comment.