Open jawira opened 3 weeks ago
Thank you for bringing this up. I agree that dumping the entire XLF file in the terminal during exceptions is not ideal. It’s unlikely that the full content of the XLF file would ever be necessary outside of debugging or developing the service itself.
A more efficient approach would be to add a configuration setting to enable verbose output only when needed or tie it to Symfony's command verbosity levels.
Feel free to create a PR with this adjustment - it's a sensible improvement!
Thanks for your contribution!
Hello, sometimes "push" command doesn't work properly, in such situation "weblate-translation-provider" will throw an exception and then dump the whole
xlf
file in the terminal.Sometimes translation files are really big (for example I have 900KB xlf files), the problem is that terminal is flooded with XML when an exception occur. This is also a problem for error trackers (like Sentry or Glitchtip) because they receive 900K exceptions, which IMHO is useless.
Here an example:
Can we replace the xml data with, for example, the filename ? This will allow to have shorter exception messages.
I can create a PR if you want.
Thank you :)