mirror of https://github.com/fluffle/goirc
Obfuscate PASS in debug logs. (#87)
This commit is contained in:
parent
8d77d1625c
commit
aad5dbe821
|
@ -473,6 +473,9 @@ func (conn *Conn) write(line string) error {
|
||||||
if err := conn.io.Flush(); err != nil {
|
if err := conn.io.Flush(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if strings.HasPrefix(line, "PASS") {
|
||||||
|
line = "PASS **************"
|
||||||
|
}
|
||||||
logging.Debug("-> %s", line)
|
logging.Debug("-> %s", line)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue