Zero-Waste-Paris / membership-scripts

Scripts used to automate import of new memberships
GNU General Public License v3.0
0 stars 3 forks source link

Don't log on Slack errors that occur when running CLI commands #32

Open gturri opened 8 months ago

gturri commented 8 months ago

Errors that occur when we run the CLI commands are already seen by the person running it, it's pointless to report it on Slack. (nb: perhaps it should be tackled not by the code in this repo, but by the local conf. In which case it would be great to document this)

gturri commented 5 months ago

(not sure how it can be achieved. Hopefully I'll get some answers on https://stackoverflow.com/q/78359833/1796345 )

gturri commented 5 months ago

If this https://github.com/symfony/monolog-bundle/issues/480 can work, then we could fix this with a simple custom handler that would wrap the Slack handler, and filter out everything in a CLI context.