Skip to content

Commit

Permalink
Removing debug statements + adding attachment IDs to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mliao95 committed Oct 17, 2024
1 parent 0197556 commit 175f668
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ class AttachmentsManager @Inject constructor(
file
) { response ->
CoroutineScope(Dispatchers.IO).launch {
print("DEBUG!!")
if (response != null && response.isSuccessful) {
print("DEBUG2!!")
completeAttachmentUpload(connectionToken, attachmentId)
} else {
val exception = response?.message()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ class ChatServiceImpl @Inject constructor(
?: throw Exception("No connection details available")
attachmentsManager.downloadAttachment(connectionDetails.connectionToken, attachmentId, fileName).getOrThrow()
}.onFailure { exception ->
SDKLogger.logger.logError { "Failed to download attachment: ${exception.message}" }
SDKLogger.logger.logError { "Failed to download attachment for attachmentId $attachmentId. Error: ${exception.message}" }
}
}

Expand All @@ -610,7 +610,7 @@ class ChatServiceImpl @Inject constructor(
?: throw Exception("No connection details available")
attachmentsManager.getAttachmentDownloadUrl(attachmentId, connectionDetails.connectionToken).getOrThrow()
}.onFailure { exception ->
SDKLogger.logger.logError { "Failed to retrieve attachment download URL: ${exception.message}" }
SDKLogger.logger.logError { "Failed to retrieve attachment download URL for attachment $attachmentId. Error: ${exception.message}" }
}
}

Expand Down

0 comments on commit 175f668

Please sign in to comment.