Commit 878b84e3 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Add more logging to an auth view

parent 02b0b9a0
......@@ -225,7 +225,8 @@ def topic_endpoint_webpageclient(request, webpage_client_userid):
return topic_auth_decision(request, ALLOW)
return topic_auth_decision(request, DENY)
except User.DoesNotExist:
except User.DoesNotExist as error:
LOGGER.info(error)
return topic_auth_decision(request, DENY)
......@@ -269,10 +270,12 @@ def topic_endpoint_apiclient(request, apiclient):
LOGGER.error('Service does not exist: %s', routing_key)
return topic_auth_decision(request, DENY)
except Site.MultipleObjectsReturned:
except Site.MultipleObjectsReturned as error:
LOGGER.info(error)
return topic_auth_decision(request, ALLOW)
except Site.DoesNotExist:
except Site.DoesNotExist as error:
LOGGER.error(error)
return topic_auth_decision(request, DENY)
return topic_auth_decision(request, DENY)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment