*(minor): stdlib logging to structlog

This commit is contained in:
Langhammer, Jens
2019-10-01 10:24:10 +02:00
parent b3aede5bba
commit f4499a5459
56 changed files with 111 additions and 259 deletions

View File

@ -1,13 +1,12 @@
"""passbook access helper classes"""
from logging import getLogger
from django.contrib import messages
from django.utils.translation import gettext as _
from structlog import get_logger
from passbook.core.models import Application
from passbook.policy.engine import PolicyEngine
LOGGER = getLogger(__name__)
LOGGER = get_logger(__name__)
class AccessMixin:
"""Mixin class for usage in Authorization views.

View File

@ -1,5 +1,4 @@
"""passbook core authentication views"""
from logging import getLogger
from typing import Dict
from django.contrib import messages
@ -11,6 +10,7 @@ from django.shortcuts import get_object_or_404, redirect, reverse
from django.utils.translation import ugettext as _
from django.views import View
from django.views.generic import FormView
from structlog import get_logger
from passbook.core.auth.view import AuthenticationView, _redirect_with_qs
from passbook.core.exceptions import PasswordPolicyInvalid
@ -20,7 +20,7 @@ from passbook.core.signals import invitation_used, user_signed_up
from passbook.core.tasks import send_email
from passbook.lib.config import CONFIG
LOGGER = getLogger(__name__)
LOGGER = get_logger(__name__)
class LoginView(UserPassesTestMixin, FormView):