Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

rest/media: Don't log Requested file is too large #5683

Closed
jo-so opened this issue Jul 14, 2019 · 3 comments
Closed

rest/media: Don't log Requested file is too large #5683

jo-so opened this issue Jul 14, 2019 · 3 comments
Labels
A-Logging Synapse's logs (structured or otherwise). Not metrics. z-p3 (Deprecated Label)

Comments

@jo-so
Copy link

jo-so commented Jul 14, 2019

Description

The error and warning messages about to large resources aren't useful. They should get dropped.

2019-07-14 14:41:52,063 - synapse.http.matrixfederationclient - 874 - WARNING - GET-212- {GET-O-24} [matrix.org] Error reading response: 502: Requested file is too large > 10485760 bytes
2019-07-14 14:41:52,064 - synapse.rest.media.v1.media_repository - 390 - ERROR - GET-212- Failed to fetch remote media matrix.org/GPMcaQOeYjjWNTMFarGJfQBJ
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/synapse/rest/media/v1/media_repository.py", line 373, in _download_remote_file
    "allow_remote": "false",
synapse.api.errors.SynapseError: 502: Requested file is too large > 10485760 bytes

Proposed patch: 0001-rest-media-Don-t-log-Requested-file-is-too-large.patch.txt

Version information

  • Version: 1.0.0-2
  • Install method: apt install matrix-synapse
  • Platform: Debian/stable
@richvdh
Copy link
Member

richvdh commented Jul 14, 2019

Thanks for reporting these. Please be aware that we can't accept patches without sign-off. Please could you follow our contributing procedure?

@jo-so
Copy link
Author

jo-so commented Jul 14, 2019 via email

@richvdh richvdh added A-Logging Synapse's logs (structured or otherwise). Not metrics. z-p3 (Deprecated Label) labels Feb 6, 2020
@richvdh
Copy link
Member

richvdh commented Apr 25, 2022

I'm going to close this as we can't use it in its current format.

@richvdh richvdh closed this as completed Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Logging Synapse's logs (structured or otherwise). Not metrics. z-p3 (Deprecated Label)
Projects
None yet
Development

No branches or pull requests

2 participants