[backend/core] Don't log AuthFetchExceptions in GetUpdatedUser

This commit is contained in:
Laura Hausmann 2024-04-16 18:38:48 +02:00
parent 672bf57f19
commit 5ba2e47426
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -266,7 +266,7 @@ public class UserResolver(
{
if (e is TimeoutException)
logger.LogDebug("UpdateUserAsync timed out for user {user}", user.Uri);
else
else if (e is not AuthFetchException { Message: "The remote user no longer exists." })
logger.LogError("UpdateUserAsync for user {user} failed with {error}", user.Uri, e.Message);
}