Add verbose exception log for send error
This commit is contained in:
		
							parent
							
								
									3206639778
								
							
						
					
					
						commit
						75d7270d5a
					
				@ -3192,6 +3192,7 @@
 | 
			
		||||
    {"name":"attachmentCase_"}, 
 | 
			
		||||
    {"name":"attachment_"}, 
 | 
			
		||||
    {"name":"bitField0_"}, 
 | 
			
		||||
    {"name":"bodyRanges_"}, 
 | 
			
		||||
    {"name":"group_"}, 
 | 
			
		||||
    {"name":"profileKey_"}
 | 
			
		||||
  ]
 | 
			
		||||
 | 
			
		||||
@ -200,6 +200,7 @@ public class SendHelper {
 | 
			
		||||
        } catch (IOException e) {
 | 
			
		||||
            var address = context.getRecipientHelper().resolveSignalServiceAddress(account.getSelfRecipientId());
 | 
			
		||||
            logger.warn("Failed to send message due to IO exception: {}", e.getMessage());
 | 
			
		||||
            logger.debug("Exception", e);
 | 
			
		||||
            return SendMessageResult.networkFailure(address);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
@ -642,6 +643,7 @@ public class SendHelper {
 | 
			
		||||
            return SendMessageResult.identityFailure(address, e.getIdentityKey());
 | 
			
		||||
        } catch (IOException e) {
 | 
			
		||||
            logger.warn("Failed to send message due to IO exception: {}", e.getMessage());
 | 
			
		||||
            logger.debug("Exception", e);
 | 
			
		||||
            return SendMessageResult.networkFailure(address);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user