Skip to content

Commit

Permalink
refactor(ipfs): improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Jan 9, 2025
1 parent b7fd30a commit 3991e33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/UploadFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function getImageResolution(file: File): Promise<{ width?: number; height?: numb
resolve({ width: img.width, height: img.height })
}
img.onerror = (err) => {
console.log('Error loading image:', err)
console.warn('Error loading image:', err)
resolve({})
URL.revokeObjectURL(img.src)
}
Expand Down
6 changes: 3 additions & 3 deletions src/store/modules/chat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ const actions = {
files,
replyToId
})
console.log('Pushed message', messageObject)
console.debug('Message', messageObject)

commit('pushMessage', {
message: messageObject,
Expand All @@ -795,15 +795,15 @@ const actions = {
partnerId: recipientId,
asset: newAsset
})
console.log('Updated CIDs and Nonces', newAsset)
console.debug('Updated CIDs and Nonces', newAsset)

try {
const uploadData = await uploadFiles(files, (progress) => {
for (const [cid] of cids) {
commit('attachment/setUploadProgress', { cid, progress }, { root: true })
}
})
console.log('Files uploaded', uploadData)
console.debug('Files uploaded', uploadData)
} catch (err) {
commit('updateMessage', {
id: messageObject.id,
Expand Down

0 comments on commit 3991e33

Please sign in to comment.