mirror of
https://github.com/TwiN/gatus.git
synced 2025-02-16 10:20:00 +01:00
fix: Display "<redacted>" instead of "host" in errors (#262)
This commit is contained in:
parent
fdec317df0
commit
bd4b91bbbd
@ -198,7 +198,7 @@ func (endpoint *Endpoint) EvaluateHealth() *Result {
|
||||
// Clean up parameters that we don't need to keep in the results
|
||||
if endpoint.UIConfig.HideHostname {
|
||||
for errIdx, errorString := range result.Errors {
|
||||
result.Errors[errIdx] = strings.ReplaceAll(errorString, result.Hostname, "host")
|
||||
result.Errors[errIdx] = strings.ReplaceAll(errorString, result.Hostname, "<redacted>")
|
||||
}
|
||||
result.Hostname = ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user