Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Usage log is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
bensteinberg committed Jan 24, 2024
1 parent 77c369e commit 6a6c412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capstone/capapi/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def access_log_middleware(get_response):
def middleware(request):
response = get_response(request)
if settings.USAGE_LOG_PATH:
if settings.get('USAGE_LOG_PATH'):
user_log = [
datetime.now().isoformat(),
request.META.get('HTTP_CF_CONNECTING_IP'),
Expand Down

0 comments on commit 6a6c412

Please sign in to comment.