Use structlogger

This commit is contained in:
Christian Cueni 2022-04-14 14:41:43 +02:00
parent 2f8682163e
commit 3917def262
3 changed files with 4 additions and 3 deletions

View File

@ -12,6 +12,7 @@
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore" "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
}, },
"dependencies": { "dependencies": {
"axios": "^0.26.1",
"pinia": "^2.0.13", "pinia": "^2.0.13",
"vue": "^3.2.31", "vue": "^3.2.31",
"vue-i18n": "^9.1.9", "vue-i18n": "^9.1.9",

View File

@ -4,5 +4,5 @@ export default [
{ {
path: ':id', path: ':id',
component: LearningPathOverview, component: LearningPathOverview,
} },
] ]

View File

@ -1,4 +1,4 @@
import logging import structlog as structlog
from authlib.integrations.base_client import OAuthError from authlib.integrations.base_client import OAuthError
from django.conf import settings from django.conf import settings
from django.shortcuts import redirect from django.shortcuts import redirect
@ -8,7 +8,7 @@ from django.contrib.auth import login as dj_login, get_user_model
from vbv_lernwelt.sso.client import oauth from vbv_lernwelt.sso.client import oauth
from vbv_lernwelt.sso.jwt import decode_jwt from vbv_lernwelt.sso.jwt import decode_jwt
logger = logging.getLogger(__name__) logger = structlog.get_logger(__name__)
OAUTH_SUCCESS_REDIRECT = 'profile' OAUTH_SUCCESS_REDIRECT = 'profile'
OAUTH_FAIL_REDIRECT = 'login-error' OAUTH_FAIL_REDIRECT = 'login-error'