1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Be consistent when logging errors

This commit is contained in:
Quentin Gliech
2022-12-14 16:02:37 +01:00
parent 8dc917395c
commit 9a39bf3f09
4 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ use crate::{Clock, DatabaseError, DatabaseInconsistencyError};
user.id = %session.browser_session.user.id,
access_token.id,
),
err(Debug),
err,
)]
pub async fn add_access_token(
executor: impl PgExecutor<'_>,

View File

@ -33,7 +33,7 @@ use crate::{Clock, DatabaseError, DatabaseInconsistencyError};
client.id = %session.client.id,
refresh_token.id,
),
err(Debug),
err,
)]
pub async fn add_refresh_token(
executor: impl PgExecutor<'_>,
@ -259,7 +259,7 @@ pub async fn lookup_active_refresh_token(
fields(
%refresh_token.id,
),
err(Debug),
err,
)]
pub async fn consume_refresh_token(
executor: impl PgExecutor<'_>,

View File

@ -198,7 +198,7 @@ pub async fn associate_link_to_user(
#[tracing::instrument(
skip_all,
fields(%user.id, %user.username),
err(Display)
err
)]
pub async fn get_paginated_user_links(
executor: impl PgExecutor<'_>,

View File

@ -695,7 +695,7 @@ pub async fn add_user_email(
%user_email.id,
%user_email.email,
),
err(Display),
err,
)]
pub async fn set_user_email_as_primary(
executor: impl PgExecutor<'_>,