From 292fa3efc2034b5c27b069acc50a1ece834fac09 Mon Sep 17 00:00:00 2001 From: Thomas Avery Date: Thu, 24 Oct 2024 14:16:45 -0500 Subject: [PATCH] Add more logging --- .../Commands/RegenerateUserAsymmetricKeysCommand.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Core/KeyManagement/Commands/RegenerateUserAsymmetricKeysCommand.cs b/src/Core/KeyManagement/Commands/RegenerateUserAsymmetricKeysCommand.cs index 4a76198d6e..ee6d70a95e 100644 --- a/src/Core/KeyManagement/Commands/RegenerateUserAsymmetricKeysCommand.cs +++ b/src/Core/KeyManagement/Commands/RegenerateUserAsymmetricKeysCommand.cs @@ -47,6 +47,10 @@ public class RegenerateUserAsymmetricKeysCommand : IRegenerateUserAsymmetricKeys x.Status is EmergencyAccessStatusType.Confirmed or EmergencyAccessStatusType.RecoveryApproved 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. if (inOrganizations || hasDesignatedEmergencyAccess) {