(content string)
| 132 | } |
| 133 | |
| 134 | func entryptionKey(content string) string { |
| 135 | for _, entryptionKeyConfig := range _entryptionKeyConfigs { |
| 136 | if entryptionKeyConfig.IsReservePart && len(entryptionKeyConfig.SecretKey) > 3 { |
| 137 | newStr := entryptionKeyConfig.SecretKey[:3] + "******" + entryptionKeyConfig.SecretKey[len(entryptionKeyConfig.SecretKey)-3:] |
| 138 | content = strings.ReplaceAll(content, entryptionKeyConfig.SecretKey, newStr) |
| 139 | } else { |
| 140 | content = strings.ReplaceAll(content, entryptionKeyConfig.SecretKey, "***") |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | return content |
| 145 | } |
| 146 | |
| 147 | func (sLog *smartIDELogStruct) Error(err interface{}, headers ...string) (reErr error) { |
| 148 |
no outgoing calls
no test coverage detected