1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-11 15:17:44 +01:00

Add more logging

This commit is contained in:
Thomas Avery 2024-10-24 14:16:45 -05:00
parent 0b60bb93d8
commit 292fa3efc2
No known key found for this signature in database
GPG Key ID: 44A02A0410B0F429

View File

@ -47,6 +47,10 @@ public class RegenerateUserAsymmetricKeysCommand : IRegenerateUserAsymmetricKeys
x.Status is EmergencyAccessStatusType.Confirmed or EmergencyAccessStatusType.RecoveryApproved x.Status is EmergencyAccessStatusType.Confirmed or EmergencyAccessStatusType.RecoveryApproved
or EmergencyAccessStatusType.RecoveryInitiated); or EmergencyAccessStatusType.RecoveryInitiated);
_logger.LogInformation(
"User asymmetric keys regeneration requested. UserId: {userId} OrganizationMembership: {inOrganizations} DesignatedEmergencyAccess: {hasDesignatedEmergencyAccess} DeviceType: {deviceType}",
userAsymmetricKeys.UserId, inOrganizations, hasDesignatedEmergencyAccess, _currentContext.DeviceType);
// For now, don't regenerate asymmetric keys for user's with organization membership and designated emergency access. // For now, don't regenerate asymmetric keys for user's with organization membership and designated emergency access.
if (inOrganizations || hasDesignatedEmergencyAccess) if (inOrganizations || hasDesignatedEmergencyAccess)
{ {