diff --git a/FitConnect/Subscriber.cs b/FitConnect/Subscriber.cs index 4248ed2fa8082394214080ed08ece4a99924635c..7427007f1f0f8c10defd66c39fb23edfc23ff64e 100644 --- a/FitConnect/Subscriber.cs +++ b/FitConnect/Subscriber.cs @@ -372,6 +372,10 @@ public class Subscriber : FitConnectClient, ISubscriberWithSubmission, // SuccessCriteria: Hash-Check 5.4 if (attachmentMeta?.Hash.Content != FitEncryption.CalculateHash(content).Content) { + Logger?.LogWarning( + "Wrong hash for attachment {attachment}\nHash should be {should} but is {is}", + id, FitEncryption.CalculateHash(content).Content, + attachmentMeta?.Hash.Content); var problem = new Problems( Problems.ProblemTypeEnum.HashMismatch, Problems.TitleHashMismatch,