Obfuscate PASS in debug logs. (#87)

This commit is contained in:
Jason Keene 2016-05-14 02:12:49 -06:00 committed by Alex Bee
parent 8d77d1625c
commit aad5dbe821
1 changed files with 3 additions and 0 deletions

View File

@ -473,6 +473,9 @@ func (conn *Conn) write(line string) error {
if err := conn.io.Flush(); err != nil {
return err
}
if strings.HasPrefix(line, "PASS") {
line = "PASS **************"
}
logging.Debug("-> %s", line)
return nil
}