From 0aca0c15c1d0ed2b907a7856e263954b88429f22 Mon Sep 17 00:00:00 2001
From: Michael Kirk <michael@signal.org>
Date: Mon, 12 Nov 2018 16:23:50 -0600
Subject: [PATCH] specify recipient when profile download fails

---
 SignalMessaging/profiles/OWSProfileManager.m | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/SignalMessaging/profiles/OWSProfileManager.m b/SignalMessaging/profiles/OWSProfileManager.m
index e86fcf82d..e6c43912b 100644
--- a/SignalMessaging/profiles/OWSProfileManager.m
+++ b/SignalMessaging/profiles/OWSProfileManager.m
@@ -1180,13 +1180,14 @@ typedef void (^ProfileManagerFailureBlock)(NSError *error);
                         [self downloadAvatarForUserProfile:latestUserProfile];
                     }
                 } else if (error) {
-                    OWSLogError(@"avatar download failed: %@", error);
+                    OWSLogError(@"avatar download for %@ failed with error: %@", userProfile.recipientId, error);
                 } else if (!encryptedData) {
-                    OWSLogError(@"avatar encrypted data could not be read.");
+                    OWSLogError(@"avatar encrypted data for %@ could not be read.", userProfile.recipientId);
                 } else if (!decryptedData) {
-                    OWSLogError(@"avatar data could not be decrypted.");
+                    OWSLogError(@"avatar data for %@ could not be decrypted.", userProfile.recipientId);
                 } else if (!image) {
-                    OWSLogError(@"avatar image could not be loaded: %@", error);
+                    OWSLogError(
+                        @"avatar image for %@ could not be loaded with error: %@", userProfile.recipientId, error);
                 } else {
                     [self updateProfileAvatarCache:image filename:fileName];