Skip to content

Commit

Permalink
fix: Remove keyword only argument for RequestsMiddleware
Browse files Browse the repository at this point in the history
Remove keyword only arguments from request middleware. This causes
django to fail when attempting to load middleware. Django currently only
supports handlers being passed in as args.
  • Loading branch information
bradykieffer committed Dec 3, 2020
1 parent 7f75f59 commit 5f0d441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/logging_v2/handlers/middleware/request.py
Expand Up @@ -42,7 +42,7 @@ def _get_django_request():
class RequestMiddleware(MiddlewareMixin):
"""Saves the request in thread local"""

def __init__(self, *, get_response=None):
def __init__(self, get_response=None):
self.get_response = get_response

def process_request(self, request):
Expand Down

0 comments on commit 5f0d441

Please sign in to comment.