I have the following code
log(config.render())
However if I have passwords in the config then they'll appear in log. Is there easy way to eliminate this? I am looking for something like that
log(config.map { if ("password" in it.key.toLowerCase()) "***" else it.value }
.render())
For now the only clear solution is to do like this
The obvious disadvantage is that it hides only exact config subtree