Hide plant id

This commit is contained in:
andig 2022-09-29 09:06:42 +02:00
parent 3cd40f0861
commit d72877f0a7

View file

@ -154,8 +154,9 @@ func unwrap(err error) (res []string) {
func redact(src string) string {
secrets := []string{
"url", "uri", "host", "broker", // infrastructure
"sponsortoken", "plant", // global settings
"user", "password", // users
"token", "access", "refresh", "sponsortoken", // tokens
"token", "access", "refresh", // tokens
"ain", "id", "secret", "serial", "deviceid", "machineid", // devices
"vin"} // vehicles
return regexp.