Log message ID when failing to download media
This commit is contained in:
parent
e25bf29609
commit
e5085b87c7
1 changed files with 2 additions and 2 deletions
|
@ -635,13 +635,13 @@ func (portal *Portal) HandleMediaMessage(source *User, download func() ([]byte,
|
||||||
|
|
||||||
data, err := download()
|
data, err := download()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
portal.log.Errorln("Failed to download media:", err)
|
portal.log.Errorfln("Failed to download media for %s: %v", info.Id, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
uploaded, err := intent.UploadBytes(data, mimeType)
|
uploaded, err := intent.UploadBytes(data, mimeType)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
portal.log.Errorln("Failed to upload media:", err)
|
portal.log.Errorfln("Failed to upload media for %s: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue