Skip to content

Commit

Permalink
More detailed final log when dryrun
Browse files Browse the repository at this point in the history
  • Loading branch information
ludwigdn committed Nov 25, 2022
1 parent b237da2 commit 937aad0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SecretSanta/Services/MailService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ public async Task Send(Participant santa, string body)
if (!Config.Instance.DryRun)
{
await emailClient.SendAsync(msg);
Console.WriteLine($" > {santa.Email}: ok! (Dryrun: {Config.Instance.DryRun})");
return;
}

Console.WriteLine($" > {santa.Email}: ok! (Dryrun: {Config.Instance.DryRun})");
Console.WriteLine($" > Dryrun: {Config.Instance.DryRun} - {santa}");
}
catch (Exception ex)
{
Expand Down

0 comments on commit 937aad0

Please sign in to comment.