Showing 1 of 5 files from the diff.
Newly tracked file
core/middleware.py changed.
Other files ignored by Codecov

@@ -1,5 +1,3 @@
Loading
1 -
import logging
2 -
3 1
from django.conf import settings
4 2
from django.shortcuts import redirect
5 3
from django.urls import resolve, reverse
@@ -7,9 +5,6 @@
Loading
7 5
from django_otp import user_has_device
8 6
9 7
10 -
SECURITY_LOGGER_NAME = "security.audit"
11 -
12 -
13 8
class ProtectAllViewsMiddleware:
14 9
    def __init__(self, get_response):
15 10
        self.get_response = get_response
@@ -39,19 +34,3 @@
Loading
39 34
        response = self.get_response(request)
40 35
41 36
        return response
42 -
43 -
44 -
class AccessLoggingMiddleware:
45 -
    def __init__(self, get_response):
46 -
        self.get_response = get_response
47 -
        self.logger = logging.getLogger(SECURITY_LOGGER_NAME)
48 -
49 -
    def __call__(self, request):
50 -
51 -
        self.logger.info({"path": request.path, "user": request.user})
52 -
53 -
        response = self.get_response(request)
54 -
55 -
        self.logger.info({"status_code": response.status_code, "user": request.user})
56 -
57 -
        return response
Files Coverage
audit 97.52%
config 38.46%
core 41.70%
secret 97.59%
twofactor 99.47%
user 97.60%
manage.py 0.00%
Project Totals (48 files) 87.75%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading