mirror of
https://github.com/eko/pihole-exporter.git
synced 2024-11-12 09:53:59 +01:00
Merge pull request #36 from SShah7433/feature/remove-password-print
Skip print statement if PIHolePassword
This commit is contained in:
commit
67cafccd8e
@ -61,7 +61,10 @@ func (c Config) show() {
|
||||
valueField := val.Field(i)
|
||||
typeField := val.Type().Field(i)
|
||||
|
||||
log.Println(fmt.Sprintf("%s : %v", typeField.Name, valueField.Interface()))
|
||||
// Do not print password
|
||||
if typeField.Name != "PIHolePassword" {
|
||||
log.Println(fmt.Sprintf("%s : %v", typeField.Name, valueField.Interface()))
|
||||
}
|
||||
}
|
||||
log.Println("------------------------------------")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user