diff --git a/ApplicationServices/UNTESTED/LibraryCommands.cs b/ApplicationServices/UNTESTED/LibraryCommands.cs index 5393abc7..68125eac 100644 --- a/ApplicationServices/UNTESTED/LibraryCommands.cs +++ b/ApplicationServices/UNTESTED/LibraryCommands.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Threading.Tasks; using AudibleApi; using DataLayer; +using Dinah.Core; using DtoImporterService; using InternalUtilities; using Serilog; @@ -61,13 +62,13 @@ namespace ApplicationServices private static async Task> scanAccountAsync(Api api, Account account) { - Dinah.Core.ArgumentValidator.EnsureNotNull(account, nameof(account)); + ArgumentValidator.EnsureNotNull(account, nameof(account)); var localeName = account.Locale?.Name; Log.Logger.Information("ImportLibraryAsync. {@DebugInfo}", new { - account.AccountName, - account.AccountId, + AccountName = account.AccountName.ToMask(), + AccountId = account.AccountId.ToMask(), LocaleName = localeName, }); diff --git a/InternalUtilities/UNTESTED/AudibleApiActions.cs b/InternalUtilities/UNTESTED/AudibleApiActions.cs index 11863ad5..81257295 100644 --- a/InternalUtilities/UNTESTED/AudibleApiActions.cs +++ b/InternalUtilities/UNTESTED/AudibleApiActions.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Threading.Tasks; using AudibleApi; using AudibleApiDTOs; +using Dinah.Core; using Polly; using Polly.Retry; @@ -16,7 +17,7 @@ namespace InternalUtilities { Serilog.Log.Logger.Information("GetApiAsync. {@DebugInfo}", new { - username, + Username = username.ToMask(), LocaleName = localeName, }); return EzApiCreator.GetApiAsync( @@ -31,7 +32,7 @@ namespace InternalUtilities { Serilog.Log.Logger.Information("GetApiAsync. {@DebugInfo}", new { - AccountId = account?.AccountId ?? "[empty]", + AccountId = account?.AccountId.ToMask() ?? "[empty]", LocaleName = account?.Locale?.Name }); return EzApiCreator.GetApiAsync(