Add log redacting, controlled by the new EnableLogRedacting config option (default true)

Imported redacting code from https://github.com/whuang8/redactrus (thanks William Huang)
Didn't use it as a dependency as it was too small and we want to keep dependencies at a minimum
This commit is contained in:
Deluan
2021-05-02 16:39:25 -04:00
parent 2372f1d12b
commit cfbc39fb7f
5 changed files with 238 additions and 3 deletions
+1
View File
@@ -40,6 +40,7 @@ require (
github.com/spf13/cobra v1.1.3
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/viper v1.7.1
github.com/stretchr/testify v1.7.0
github.com/unrolled/secure v1.0.8
github.com/xrash/smetrics v0.0.0-20200730060457-89a2a8a1fb0b
github.com/ziutek/mymysql v1.5.4 // indirect