I noticed that Metabase prints the full query in the logs when some errors occur. The issue is that these queries might have Personal Identifiable Information and we don't want to have that in the logs.
Is there a way to filter out the SQL from the error logs without losing the rest of the log message by configuration?
If it needs to be a custom post-processing log filter can someone provide any hints on how to redact only the query from the log?
Example: A query like "select * from users where email = 'email@example.com'" if printed on the logs will contain (at least possible) PII.
V46 should include some very important tweaks on what we show in the errors of the query, I would check the new release candidate. Btw: you can’t strip something specific from the query unless you modify the code