forked from MirrorHub/mautrix-whatsapp
Move media 404 error logs to debug level
This commit is contained in:
parent
5f82ead5b7
commit
78fe69a578
1 changed files with 5 additions and 1 deletions
|
@ -1929,7 +1929,11 @@ func shallowCopyMap(data map[string]interface{}) map[string]interface{} {
|
|||
}
|
||||
|
||||
func (portal *Portal) makeMediaBridgeFailureMessage(info *types.MessageInfo, bridgeErr error, converted *ConvertedMessage, keys *FailedMediaKeys, userFriendlyError string) *ConvertedMessage {
|
||||
if errors.Is(bridgeErr, whatsmeow.ErrMediaDownloadFailedWith404) || errors.Is(bridgeErr, whatsmeow.ErrMediaDownloadFailedWith410) {
|
||||
portal.log.Debugfln("Failed to bridge media for %s: %v", info.ID, bridgeErr)
|
||||
} else {
|
||||
portal.log.Errorfln("Failed to bridge media for %s: %v", info.ID, bridgeErr)
|
||||
}
|
||||
if keys != nil {
|
||||
meta := &FailedMediaMeta{
|
||||
Type: converted.Type,
|
||||
|
|
Loading…
Reference in a new issue